Part Number Hot Search : 
MC5152 BR810 4760A PHAWOZ MBI5028 MAX3349E 2N930 HC14M
Product Description
Full Text Search
 

To Download DA7219-02VBA Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 1 of 123 ? 2015 dialog semiconductor general description the da7219 is an audio codec with advanced accessory detection (aad). da7219 contains a mono microphone to adc path, and a stereo dac to hp path. the aad block supports three - pole (headphone) and four - pole (headset) jacks, and allows the automatic pin order switching of mic/gnd on ctia or omtp headsets. it also supports automatic button detection. key features high performance mono microphone to adc record path w ith 90 db snr adc digital filters with audio and voice mode high - pass characteristics a low - noise microphone bias regulator with programmable output high performance stereo dac to headphone playback path with 100 db snr dac digital filters with audio and v oice mode high - pass cut - off and 5 - band equaliser advanced accessory detection supports three/four pole jack detection mic/gnd polarity switching multiple button detection headphone impedance testing a microphone input with alc (automatic level control) digital sidetone path with gain digital tone generator system controller for simplified pop - free start - up and shutdown single interface 24 khz adc/48 khz dac mixed sample rates supported shutdown mode for very low current consumption during standby phase l ocked loop with sample rate tracking to generate system clock 4 - wire digital audio interface with support for i2s, tdm and other audio formats 2 - wire i2c compatible with support for high speed mode up to 3.4 mhz wl - csp routeeasy ? package for low cost pcb m anufacture applications chromebooks portable a udio applications tablets and ebooks headphone accessories remote controllers gaming controllers
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 2 of 123 ? 2015 dialog semiconductor system diagram figure 1 : da7219 in a digital distributed system d a 7 2 1 9 a u d i o j a c k a u d i o s w i t c h h p a m p c o d e c s o c d i g i t a l c l a s s d d i g i t a l d i g i t a l a n a l o g a n a l o g s t e r e o s p e a k e r h e a d s e t d m i c d i g i t a l c l a s s d
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 3 of 123 ? 2015 dialog semiconductor contents general description ................................ ................................ ................................ ............................. 1 key features ................................ ................................ ................................ ................................ ......... 1 applications ................................ ................................ ................................ ................................ ......... 1 system diagram ................................ ................................ ................................ ................................ ... 2 contents ................................ ................................ ................................ ................................ ............... 3 1 terms and definitions ................................ ................................ ................................ ................... 6 2 references ................................ ................................ ................................ ................................ ..... 6 3 block diagram ................................ ................................ ................................ ................................ 7 4 pinout ................................ ................................ ................................ ................................ ............. 8 4.1 microphone pins ................................ ................................ ................................ .................. 10 4.2 accessory detect pins ................................ ................................ ................................ ......... 10 4.3 interface input pins ................................ ................................ ................................ .............. 10 4.4 interface output pins ................................ ................................ ................................ ............ 11 4.5 interface bidirectional pins ................................ ................................ ................................ .. 11 4.6 headphone outp ut pins ................................ ................................ ................................ ....... 11 4.7 charge pump pins ................................ ................................ ................................ ............... 11 4.8 references ................................ ................................ ................................ .......................... 12 4.9 supply pins ................................ ................................ ................................ .......................... 12 4.10 ground pins ................................ ................................ ................................ ......................... 12 5 absolute maximum ratings ................................ ................................ ................................ ........ 13 6 recommended operating conditions ................................ ................................ ........................ 13 7 electrical characteristics ................................ ................................ ................................ ............ 14 8 timing characteristics ................................ ................................ ................................ ................ 18 9 functional description ................................ ................................ ................................ ................ 21 9.1 device operating modes ................................ ................................ ................................ ..... 21 9.2 input paths ................................ ................................ ................................ .......................... 23 9.2.1 microphone input ................................ ................................ ................................ . 23 9.2.1.1 microphone bias ................................ ................................ .............. 23 9.2.1.2 microphone amplifier ................................ ................................ ....... 24 9.2.1.3 input amplifiers ................................ ................................ ................ 24 9.2.2 analogue to digital converter (adc) ................................ ................................ ... 25 9.3 digital engine ................................ ................................ ................................ ...................... 26 9.3.1 input processing ................................ ................................ ................................ .. 27 9.3.1.1 adc digital gain ................................ ................................ ............... 27 9.3.1.2 high - pass filter ................................ ................................ ................. 27 9.3.1.3 automatic level co ntrol (alc) ................................ ........................ 28 9.3.2 sidetone processing ................................ ................................ ............................ 29 9.3.3 tone generator ................................ ................................ ................................ .... 30 9.3.4 digital router ................................ ................................ ................................ ........ 31 9.3.5 system controller ................................ ................................ ................................ . 31 9.3.6 output processing ................................ ................................ ................................ 32 9.3.6.1 dac digital gain ................................ ................................ ............... 32 9.3.6.2 high - pass filter ................................ ................................ ................. 32
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 4 of 123 ? 2015 dialog semiconductor 9.3.6.3 5 - band equaliser ................................ ................................ .............. 33 9.3.6.4 dac soft mute ................................ ................................ ................. 35 9.4 output paths ................................ ................................ ................................ ........................ 36 9.4.1 digital to analogue converter (dac) ................................ ................................ ... 36 9.4.2 headphone outputs ................................ ................................ ............................. 36 9.4.2.1 buffer amplifier ................................ ................................ ................. 36 9.4.2.2 headphone amplifiers ................................ ................................ ...... 37 9.4.3 charge pump control ................................ ................................ ........................... 37 9.4.4 tracking the demands on the charge pump output ................................ ............. 39 9.4.4.1 cp_mchange = 01 (tracking the pga gain setting) .......................... 39 9.4.4.2 cp_mchange = 10 (tracking the dac signal setting) ....................... 39 9.4.4.3 cp_m change = 11 (tracking the output signal magnitude) .............. 39 9.5 advanced accessory detection (aad) ................................ ................................ ............... 40 9.5.1 configuring advanced accessory detection (aad) ................................ ............ 41 9.5.2 detection of jack insertion or removal ................................ ................................ . 44 9.5.3 three - pole or four - pole jack insertion ................................ ................................ .. 45 9.5.4 jack pin order detection with four - pole jacks ................................ ....................... 45 9.5.5 headphone output and line output ................................ ................................ ...... 46 9.5.6 detect ion of buttons ................................ ................................ ............................. 46 9.6 clocking ................................ ................................ ................................ .............................. 49 9.6.1 mclk input ................................ ................................ ................................ .......... 49 9.6.1.1 mclk detection ................................ ................................ ............... 49 9.6.2 audio reference oscillator ................................ ................................ .................... 49 9.6.3 pll bypass mode ................................ ................................ ................................ 49 9.6.4 normal pll mode (dai master) ................................ ................................ .......... 50 9.6.5 example calculation of the feedback divider setting: ................................ ........... 51 9.6.6 srm pll mode (dai slave) ................................ ................................ ................ 52 9.7 reference genera tion ................................ ................................ ................................ .......... 52 9.7.1 voltage references ................................ ................................ ............................... 52 9.7.2 bias currents ................................ ................................ ................................ ........ 52 9.7.3 voltage levels ................................ ................................ ................................ ...... 52 9.7.4 io voltage level ................................ ................................ ................................ .... 52 9.8 i2c control interface ................................ ................................ ................................ ............ 53 9.9 digital audio interface (dai) ................................ ................................ ............................... 56 9.9.1 dai channels ................................ ................................ ................................ ....... 57 9.9.2 i2s mode ................................ ................................ ................................ ............. 57 9.9.3 le ft justified mode ................................ ................................ ................................ 57 9.9.4 right justified mode ................................ ................................ ............................. 57 9.9.5 dsp mode ................................ ................................ ................................ ........... 58 10 register maps and definitions ................................ ................................ ................................ ... 59 11 package informat ion ................................ ................................ ................................ ................. 113 12 ordering information ................................ ................................ ................................ ................ 114 applications information ................................ ................................ ........................... 115 appendix a a.1 codec initialisation ................................ ................................ ................................ ............ 115 a.2 automatic alc calibratio n ................................ ................................ ................................ . 115 components ................................ ................................ ................................ ................ 116 appendix b
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 5 of 123 ? 2015 dialog semiconductor b.1 audio inputs ................................ ................................ ................................ ...................... 116 b.2 microphone bias ................................ ................................ ................................ ................ 117 b.3 audio outputs ................................ ................................ ................................ .................... 117 b.4 headphone charge pump ................................ ................................ ................................ . 118 b.5 digital interfaces ................................ ................................ ................................ ................ 119 b.6 references ................................ ................................ ................................ ........................ 119 b.7 supplies ................................ ................................ ................................ ............................ 120 b.8 ground ................................ ................................ ................................ .............................. 120 pcb layout guidelines ................................ ................................ ............................... 121 appendix c c.1 layout and schematic support ................................ ................................ .......................... 121 c.2 general recommen dations ................................ ................................ ................................ 121 c.3 capacitor selection ................................ ................................ ................................ ............ 122
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 6 of 123 ? 2015 dialog semiconductor 1 terms and definitions adc analogue to digital converter alc automatic level control ctia cellular telecommunications industry association, ( now known as the wireless association) dac digital to analogue converter dai digital audio interface dmic digital m icrophone dtmf dual tone multi - frequency fs sample r ate i2c inter - integrated circuit interface i2s inter - ic sound ldo low dropout r egulator mclk master clock omtp open mobile terminals platform pc program counter pga programmable ga in amplifier pll phase locked loop psr r power supply rejection ratio rc resistance - capacitance sc system controller sdm sigma delta modulator snr signal to noise ratio srm sample rate matching swg sine wave generator tdm time division m ultiplexing thd+n total harmonic distortion plus noise vco voltage - controlled oscillator 2 references [1] android wired audio headset specification (v1.1) ( https://source.android.com/accessories/he adset/specification.html )
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 7 of 123 ? 2015 dialog semiconductor 3 block diagram figure 2 : da7219 block diagram d a c l p l l a d c d a c r v o l t a g e r e f s d a 7 2 1 9 c h a r g e p u m p a a d d i g i t a l a u d i o i n t e r f a c e g n d _ c p m c l k d a c r e f v m i d g n d _ h p m i c _ n m i c _ p v r e f h p _ r m i c b i a s v d d _ m i c h p c s p h p c s n h p c f n h p c f p g n d m i c s l e e v e r i n g 2 h p _ l i n p u t f i l t e r s ( h i g h - p a s s , a l c ) o u t p u t f i l t e r s ( h i g h - p a s s , 5 - b a n d e q ) s y s t e m c o n t r o l l e r j a c k d e t t o n e g e n e r a t o r a c c e s s o r y d e t e c t s i d e t o n e p a t h i 2 c c o n t r o l i n t e r f a c e v d d s d a s c l n i r q b c l k w c l k d a t i n d a t o u t v d d _ i o i m p e d a n c e d e t e c t i o n d i g i t a l e n g i n e s l e e v e _ s e n s e r i n g 2 _ s e n s e
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 8 of 123 ? 2015 dialog semiconductor 4 pinout figure 3 : da7219 ballout diagram table 1 : da7219 pin description pin no. pin name type ( table 2 ) description microphone inputs b16 mic_p ai differential analogue microphone 1 input (pos) a15 mic_n ai differential analogue microphone 1 input (neg) b14 micbias a o microphone bias output accessory detect d16 jackdet di jack detect input from socket a11 sleeve aio socket sleeve (c onfig ured as mic or gnd ) c13 ring2 aio socket ring 2 (c onfig ured as gnd or mic ) b6 sleeve_ sense aio socket sleeve (sense) b4 ring2_ sense aio socket ring 2 (sense ) c15 mic aio microphone dc input headphone outputs a3 hp_l ao single - ended headphone output (left) a5 hp_r ao single - ended headphone output ( right ) charge pump a1 hpcsp aio charge pump reservoir capacitor (pos itive ) c1 hpcsn aio charge pump reservoir capacitor (neg ative ) d2 hpcfp aio charge pump flying capacitor (pos itive ) c3 hpcfn aio charge pump flying capacitor (neg ative ) m i c _ n h p c f p v d d _ i o h p c f n v d d v d d _ i o w c l k d a t i n d a t o u t n i r q s c l s c l s d a m i c h p c s n g n d _ c p r i n g 2 _ s e n s e h p _ l h p _ r s l e e v e _ s e n s e d a c r e f v r e f v m i d g n d r i n g 2 s l e e v e v d d _ m i c m i c b i a s m i c _ p j a c k d e t h p c s p 1 2 3 4 5 6 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 a b c d 7 1 2 3 4 5 6 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 7 m c l k a n a l o g u e d i g i t a l p o w e r g r o u n d v i e w f r o m a b o v e l i v e b u g b c l k r i n g 2 g n d _ h p
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 9 of 123 ? 2015 dialog semiconductor pin no. pin name type ( table 2 ) description digital interface d14 sda diod i2c bidirectional data d12 scl di i2c clock d10 nirq diod interrupt output (open drain active low) c7 datin dio dai data input to da7219 c9 datout dio dai data output from da7219 d6 bclk dio dai bit clock d8 wclk dio dai word clock c11 mclk di master clock input references b8 dacref aio dac reference decoupling capacitor a9 vmid aio mid - rail reference decoupling capacitor a7 vref aio bandgap reference decoupling capacitor supplies c5 vdd ai main analogue and digital supply a13 vdd_mic ai supply for micbias ldo d4 vdd_io ai supply for digital interface s grounds b2 gnd_cp ai ground b10 gnd ai ground b12 gnd_hp ai ground table 2 : pin type definition pin type description pin type description di digital input ai analogue input dio digital input/output ao analogue output diod digital input/output open drain aio analogue input/output
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 10 of 123 ? 2015 dialog semiconductor 4.1 microphone pins pin mic _p mic_p is the positive differential input for the analogue microphone channel. it can be used as a single - ended input if mic_n is grounded (see figure 7 ) . pin mic _n mic_n is the negative differential input for the analogue microphone channel. it should be grounded when using a single - ended analogue microphone configuration. pin micbias micbia s is the internally generated microphone supply. this must be decoupled with a 1 f capacitor. 4.2 accessory detect pins pin jackdet jack d et is used to signal to the device when the jack is fully inserted in to the 3.5 mm jack (or alternative) socket if not req uired it should be left unconnected. pin sleeve sleeve is tested during the sense stage and then configured as either the headset microphone input or the headset ground connection pin ring2 ring2 is tested during the sense stage and then configured as either the headset microphone input or the headset ground connection. pin sleeve_sense sleeve sense line to guarantee accuracy over distance, cables and connectors. pin ring2_sense ring2 sense line to guarantee accuracy over distance, cables and connectors . pin mic mic is the dc input for the analogue accessory detect . 4.3 interface i nput pins pin mclk mclk is the master clock input pin. it is used as the main system clock either directly or via the pll. pin scl scl is the control interface (i2c) clock input an d is used in conjunction with sda to control the device. pin datin datin is the data input pin which forms part of the digital audio interface. it is used to present audio playback data to the device.
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 11 of 123 ? 2015 dialog semiconductor 4.4 interface o utput pins pin nirq nirq is the open drain a ctive - low interrupt output to alert the host to either an accessory or a level - detect event. pin datout datout is the data output pin which forms part of the digital audio interface. it is used to present audio record data to the host. 4.5 interface b idirectional pins pin sda sda is the control interface (i2c) data input/output and is used in conjunction with scl to control the device. pin bclk bclk is the bit clock input/output pin which forms part of the digital audio interface (dai). it is used to c lock audio data bits into or out from the device or both . pin wclk wclk is the word clock input/output pin which forms part of the dai. it is used to indicate whether the data bits belong to the left or right audio channel. 4.6 headphone output pins pin hp _ l 3.6.2 hp _ l is the left - channel headphone output. it is ground - centred so the headphone speaker can be connected directly between hp_l and ground. pin hp _ r hp _r is the right - channel single ended headphone output . it is ground - centred so the headphone speake r can be connected directly between hp _r and ground . 4.7 charge pump pins pin hpcsp hpcsp is the positive output from the headphone charge pump. it should be connected to gnd_cp via a reservoir capacitor . pin hpcsn hpcsn is the negative output from the headpho ne charge pump . it must be connected to gnd_cp via a reservoir capacitor. pin hpcfp hpcfp is one of the flying capacitor connections required by the headphone charge pump . it must be connected to hpcfn via a capacitor. pin hpcfn hpcfn is one of the flying capacitor connections required by the headphone charge pump . it must be connected to hpcfp via a capacitor .
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 12 of 123 ? 2015 dialog semiconductor 4.8 references pin vmid vmid is mid - rail reference decoupling capacitor connection. pin dacref dacref is the dac reference decoupling capacitor connection. pin vref v ref is the bandgap reference decoupling capacitor connection. 4.9 supply pins pin vdd vdd is main analogue supply pin. it supplies all the analogue circuits except the micbias output and the hpamp outputs. pin vdd_io vdd_io is the supply pin for the digital input/output signals. pin vdd_mic vdd_mic is the supply pin f or the micbias . 4.10 ground pins pin gnd gnd is the main analogue ground pin. it is the ground connection for all analogue circuits with the exception of the charge pump. pin gnd_cp gnd _cp is the ground pin for the charge pump and the digital engine. pin gnd_hp gnd_hp is the ground point for the headset. when a headset is connected this pin is automatically connected internally to either ring2 or sleeve.
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 13 of 123 ? 2015 dialog semiconductor 5 absolute maximum rat ings table 3 : absolute maximum ratings parameter description conditions ( note 1 ) min max unit storage temperature C 65 +165 c operating temperature C 40 +85 c vdd main supply voltage C 0.3 +2.75 v vdd_io digital io supply voltage C 0.3 +5.5 v vdd_mic microphone bias supply voltage C 0.3 +5.5 v digital io pins sda, scl, bclk, wclk, datin, datout, mclk C 0.3 vdd_io + 0.3 v accessory detect pins jackdet C 0.3 vdd + 0.3 v ring2, sleeve, mic, ring2_sense, sleeve_sense C 0.3 vdd_mic + 0.3 v analogue input pins mic_p, mic_n C 0.3 vdd + 0.3 v package thermal resistance c/w esd susceptibility human body model (hbm) 2 kv charged device model (cdm) 500 v note 1 stre sses beyond those listed under a bsolute m aximum ratings may cause permanent damage to the device. these are stress ratings only, so functional operation of the device at these or any other conditions beyond those indicated in the operational sections of the specification are not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliabilit y. note 2 all figures are to jedec specifications 6 recommended operating conditions table 4 : recommended operating conditions parameter description conditions min typ max unit operating temperature C 25 +85 c vdd main supply voltage 1.7 +2.5 v vdd_io digital io supply voltage 1.5 +3.6 v vdd_mic microphone bias supply voltage 1.8 +3.6 v
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 14 of 123 ? 2015 dialog semiconductor 7 electrical characteristics unless otherwise stated, test conditions are as follows: vdd = vdd_io = 1.8 v, vdd_mic = 3.3 v, mclk = 12.288 mhz, sr = 48 khz, pll = bypass mode. table 5 : power consumption description conditions min typ max unit powerdown mode 10 a digital playback to headphone, no load dac to hp_l/r, quiescent 3.4 mw digital playback to headphone, with load dac to hp_l/r, 16? load, 0.1 mw at 0 dbfs 7.5 mw microphone stereo record mic p/n to adcl/r 2.75 mw microphone stereo record and digital playback to headphone, no load mic p/n to adcl/r and dacl/r to hp_l/r, quiescent 4.8 mw microphone stereo record and digital playback to headphone, with load mic p/n to adcl/r and dacl/r to hp_l/r, 16 ? load, 0.1 mw at 0 dbfs 8.9 mw table 6 : electrical characteristics: microphone bias parameter description condition s min typ max unit v micbias bias voltage no load, vdd_mic > v micbias + 200 mv 1. 8 2.9 v output voltage step 1.8 / 2.0 / 2.2 / 2.4 / 2.6 / 2.8 / 2.9 200 mv i bias output current output voltage dr op < 50 mv 2 ma psrr power supply rejection ratio 20 hz to 2 khz 2 khz to 20 khz 70 50 db v n output voltage noise v micbias 2.2 v 5 v rms table 7 : electrical characteristics: micamp parameter description conditions min typ max unit full - scale input signal 0 db, singled - ended 0 db g ain, differential 0.8vdd 1.6vdd v pp input resistance single - ended 12 15 18 k? programmable g ain ? 6 36 db gain step size 6 db absolute g ain accuracy 0 db @ 1 khz - 1.0 1.0 db gain step error 20 hz to 20 khz - 0.1 0.1 db input noise level inputs connected to gnd, 24 db g ain, input - referred, a - weighted 5 v rms amplitude ripple 20 hz to 20 khz - 0.5 0.5 db psrr power supply rejection ratio 20 hz to 2 khz 2 khz to 20 khz 90 70 db
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 15 of 123 ? 2015 dialog semiconductor table 8 : electrical characteristics: mixinamp parameter description conditions min typ max unit v max full - scale input signal 0 db g ain 1.6vdd v pp programmable g ain ? 4.5 18 db gain step size 1.5 db absolute g ain accuracy 0 db @ 1 khz - 1.0 1.0 db gain step error 20 hz to 20 khz - 0.1 0.1 db amplitude ripple 20 hz to 20 khz - 0.5 0.5 db psrr power supply rejection ratio 20 hz to 2 khz 2 khz to 20 khz 90 70 db table 9 : electrical characteristics: adc_mono parameter description conditions min typ max unit v max full - scale input signal 0 dbfs digital output level 1.6 vdd v pp snr signal to noise ratio a - weighted 90 db th d+n total harmonic distortion plus noise - 1 dbfs analog ue input level - 85 db in - band spurious 0 dbfs analog ue input level - 85 db psrr power supply rejection ratio 20 hz to 2 khz 2 khz to 20 khz relative to vdd 70 50 db table 10 : electrical characteristics: dac_stereo parameter description conditions min typ max unit v max full - scale output signal 0 dbfs digital input level 1.6 vdd v pp snr signal to noise ratio a - weighted 100 db th d+n total harmonic distortion plus noise - 1 dbfs digital input level - 90 db psrr power supply rejection ratio 20 hz to 2 khz 2 khz to 20 khz relative to vdd 70 50 db
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 16 of 123 ? 2015 dialog semiconductor table 11 : electrical characteristics: audio_hpamp_stereo parameter description conditions min typ max unit v max full - scale output signal no load 1.6 vdd v pp dc output offset ? 30 db g ain 250 v maximum output power per channel vdd = 1.8 v, thd < 0.1%, r load = 16 ?, 1 khz 27 mw rms maximum output power per channel vdd = 2.5 v, thd < 0.1%, r load = 16 ?, 1 khz 45 mw rms load resistance single - ended mode 13 16 ? load capacitance 500 pf load inductance 400 h snr signal to noise ratio vdd = 1.8 v, 0 db g ain 98 db vdd = 2.5 v, 0 db g ain 100 db v noise output noise level 20 hz to 20 khz, <20 db g ain 2.5 v rms th d+n total harmonic distortion plus noise vdd = 1.8 v, r load = 16 ? , - 5 dbfs, 1 khz ? 75 db programmable g ain ? 57 6 db gain step size 1.0 db absolute gain accuracy 0 db @ 1 khz ? 0.8 0.8 db left/right gain mismatch 20 hz to 20 khz ? 0.1 0.1 db gain step error 20 hz to 20 khz ? 0.1 0.1 db amplitude ripple 20 hz to 20 khz ? 0.5 0.5 db mute attenuation ? 70 db psrr power supply rejection ratio 20 hz to 2 khz 2 khz to 20 khz 70 50 db table 12 : electrical characteristics: input filters parameter description conditions min typ max unit b pass pass band 0.45 fs hz pass band ripple voice mode music mode 0.3 0.1 db b stop stop band fs 48 khz fs = 88.2 or 96 khz 0.56 fs 7 fs 3.5 fs hz stop band attenuation voice mode music mode 70 55 db group delay voice mode music mode fs = 88.2 or 96 khz 4.3 / fs 18 / fs 9 / fs s
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 17 of 123 ? 2015 dialog semiconductor table 13 : dac filter specifications symbol parameter conditions min typ max unit b pass pass band 0.45 fs hz pass band ripple voice mode music mode 0.3 0.1 db b stop stop band fs 48 khz fs = 88.2 or 96 khz 0.56 fs 7 fs 3.5 fs hz stop band attenuation voice mode music mode 70 55 db group delay voice mode music mode fs = 88.2 or 96 khz 4.3 / fs 18 / fs 9 / fs s group delay variation 20 hz to 20 khz 1 s left/right channel group delay mismatch 2 s table 14 : electrical characteristics: alc parameter description conditions min typ max unit attack rate fs = 48 khz 1.6 6500 db/s release rate fs = 48 khz 1.6 1675 db/s hold time fs = 48 khz 1.3 42300 ms maximum threshold ? 94.5 0 dbfs minimum threshold ? 94.5 0 dbfs noise threshold ? 94.5 0 dbfs threshold step size 1.5 db maximum overall gain 0 90 db maximum overall attenuation 0 90 db maximum analogue gain 0 36 db minimum analogue gain 0 36 db gain step size 1.5 db table 15 : electrical characteristics: accessory detect parameter description conditions min typ max unit ring2 ground switch r esistance 50 m? sleeve ground switch r esistance 50 m?
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 18 of 123 ? 2015 dialog semiconductor 8 timing characteristics table 16 : timing i/o voltage c haracteristics parameter description conditions min typ max unit v ih scl, sda, input high voltage 0.7*vdd_io v v il scl, sda, input low voltage 0.3*vdd_io v v ih mclk, bclk, wclk, datin, datout input high voltage 0.7*vdd_io v v il mclk, bclk, wclk, datin, datout input low voltage 0.3*vdd_io v v ol @3 ma sda output low voltage 0.24 v
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 19 of 123 ? 2015 dialog semiconductor figure 4 : i2c bus t iming table 17 : i2c c ontrol bus ( vdd_io = 1.8 v ) parameter description conditions min typ max unit bus free time stop to start 500 ns bus line capacitive load 150 pf standard/fast mode scl clock frequency 0 1000 khz start condition setup time 260 ns sth start condition hold time 260 ns clkl scl low time 500 ns clkh scl high time 260 ns scl rise/fall time input requirement 1000 ns sda rise/fall time input requirement 300 ns dst sda setup time 50 ns dht sda hold time 0 ns tss stop condition setup time 260 ns high - speed mode scl clock frequency 0 3400 khz start condition setup time 160 ns sth start condition hold time 160 ns clkl scl low time 160 ns clkh scl high time 60 ns scl rise/fall time input requirement 160 ns sda rise/fall time input requirement 160 ns dst sda setup time 10 ns dht sda hold time 0 ns tss stop condition setup time 160 ns s c l s d a s t h c l k l c l k h d s t t s s d h t
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 20 of 123 ? 2015 dialog semiconductor figure 5 : digital audio interface timing diagram note 3 diagram shown is valid for all modes except dsp. for dsp mode the bclk signal is inverted table 18 : digital audio interface t iming (i2s/dsp in master/slave m ode) parameter description conditions ( vdd_io = 1.8 v ) min typ max unit input impedance dc impedance > 10 m? 300 1.0 2.5 ? pf t bclk period 75 ns t r bclk rise time 8 ns t f blck fall time 8 ns t hc bclk high period 40 % 60 % t t lc bclk low period 40 % 60 % t t dcw bclk to wclk delay - 30 % +30 % t t dcd bclk to datout delay - 30 % +30 % t t hw wclk high time dsp mode 100 % t non - dsp mode word length ( note 4 ) t t lw wclk low time dsp mode 100 % t non - dsp mode word length ( note 5 ) t t sw wclk setup time slave mode 7 ns t hw wclk hold time slave mode 2 ns t sd datin setup time 7 ns t hd datin hold time 2 ns t dwd datout to wclk delay datout is synchronised to bclk note 4 wclk must be high for at least the word length number of bclk periods note 5 wclk must be low for at least the word length number of bclk periods t t l c t h c b c l k d a t i n t f t s d d a t o u t w c l k t r t d c w t d c d t d w d t h d t s w t h w
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 21 of 123 ? 2015 dialog semiconductor 9 functional description da7219 is a high - performance, low - power audio codec with in - built advan ced accessory detection (aad). the aad supports the detection of three - pole (headphone or lineout) or four - pole (headset) jacks, with automatic pin order switching of mic/gnd on ctia and omtp headsets. the da7219 contains a mono analogue microphone - to - adc p ath and a digital audio interf ace (dai) for input and output. the dac to headphone path has a ground centred, single ended stereo headphone output. the digital core has an input filter with a high pass filter, and automatic level control (alc), while the output filter has a high pass filter, and a 5 - band eq. there is also a sidetone path with gain and a tone generator that supports dual tone multi - frequency (dtmf). 9.1 device o perat ing modes the da7219 codec has three operating modes: deep sleep C there is no clocking in deep sleep mode and consequently no functionality available and no accessory detection is performed. the system will awake when system_active = 1. sleep C in sleep mode and with micbias off, aad performs jack detection and jack configuration detection. any button press is detected, but identification of the button cannot be performed until micbias is on. no clocking is performed in sleep mode, and playback and record are not supported. on C aad performs full - function accessory detection. playback and record are supported. all modes, their maximum current consumption, and functionality are listed in table 19 .
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 22 of 123 ? 2015 dialog semiconductor table 19 : system states, configuration, and current consumption mode configuration codec typical current c onsumption comments vdd + vdd_io vdd _ mic system_ active mclk pll mode aad c onfig internal ref o sc internal pll audio p ath aad vdd + vdd_io vdd_mic off off off n/a n/a n/a n/a n/a n/a n/a n/a none none n/a deep sleep on on 0 n/a n/a n/a off off off off < 10 a 0 wake on system_active = 1. sleep on on 1 off off buttons off on off off (playback/ record not supported) jack insertion, jack type and pin order < 200 a 0 all on a s above plus button detection (without identification ) < 500 a 0 all on + micbias_en full detection (a s above but with button identification ) < 300 a < 2 ma on on on 1 off srm - locks to wclk if dai i s in slave m ode all on + micbias_en on on on (playback/ record etc) full detection dependent on use case (playback level into load etc) aad uses clock on demand to save power on ( 11.8 mhz or 12.288 mhz) bypass off off on (valid freq 2 - 80 mhz) normal - lock to mclk off on
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 23 of 123 ? 2015 dialog semiconductor 9.2 input paths 9.2.1 microphone i nput the da7219 analogue input consist s of one set of amplifiers and an adc as shown in figure 6 . figure 6 : analogue inputs block diagram 9.2.1.1 microphone b ias the device has a microphone bi as output, which is a programmable voltage source that can be used to supply analogue microphones. the bias output can be in dependently programmed from 1.8 v to 2.9 v in 0.2 v steps using micbias1_level . the microphone bias level can only be changed while the associated micbias circuit is disabled (micbias1_en = 0). table 20 : microphone bias settings micbias1_level output voltage (v) in low noise mode 000 reserved 001 1.8 010 2.0 011 2.2 100 2.4 101 2.6 110 2.8 111 2.9 a d c m i c _ n m i c _ p t o a d c f i l t e r m i c _ 1 _ a m p m i x i n _ l _ a m p - 6 : + 6 : + 3 6 d b - 4 . 5 : + 1 . 5 : + 1 8 d b
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 24 of 123 ? 2015 dialog semiconductor 9.2.1.2 microphone a mplifier figure 7 : ecm microphone configurations the microphone amplifier can be configured in a) headset mode, microphone amplifier is fully differential b) fully differential mode for improv ed common - mode noise rejection c) pseudo - differential mo de d) single - ended mode (mic_p or mic _n) all configurations are illustrated in figure 7 . the configuration of the first microphone amplifier is specifie d using the mic _1 _ ctrl register. it is enabled by setting the mic _1 _amp_en bit, and is muted by setting the mic_1_amp_mute_en bit. the gain of the amplifier can be set in the range of C 6 db to +36 db in 6 db steps using mic_ 1_ amp_gain (see table 21 : ) . table 21 : mic_1_gain gain settings mic_1_amp_gain amplifier gain (db) 000 - 6 001 0 010 6 011 12 100 18 101 24 110 30 111 36 9.2.1.3 input a mplifiers the input amplifier provide s an additional gain stage between the microphone amplifier (see section 0 and figure 6 ) and the adc input. the input amplifier is enabled by setting mixin_l_amp_ramp_en = 1 . the gain can be set in the range of C 4.5 db to +18 db in 1.5 db steps using mixin_l_amp_gain . gain updates can be synchronised with signal zero - crossings by setting mixin_l_a mp_zc_en = 1. if no zero - crossing is detected within the timeout period of approximatel y 100 ms, the update is applied unconditionally. m i c b i a s m i c _ p m i c _ n m i c b i a s m i c _ p m i c _ n m i c b i a s m i c _ p ( b ) d i f f e r e n t i a l ( c ) p s e u d o - d i f f e r e n t i a l ( d ) s i n g l e - e n d e d m i c _ n m i c b i a s m i c _ p m i c _ n ( a ) h e a d s e t r i n g 2 _ s e n s e m i c s l e e v e _ s e n s e
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 25 of 123 ? 2015 dialog semiconductor as an alternative to zero - cross synchronisation, gain updates can be ramped through all intermediate values by setting mixin_l_amp_ramp_en = 1. this ramp setting overrides the settings of mixin_l_a mp_zc_en . the amplifier can be muted using mixin_ l_ amp_mute_en . table 22 : mixin_l_ gain settings mixin_l_amp_gain amplifier gain (db) 0000 - 4.5 0001 - 3.0 0010 - 1.5 0011 0.0 0100 1.5 0101 3.0 0110 4.5 0111 6.0 1000 7.5 1001 9.0 1010 10.5 1011 12.0 1100 13.5 1101 15.0 1110 16.5 1111 18.0 9.2.2 analogue to digital converter (adc ) the da7219 codec contains a high quality audio adc . t he adc is clocked at a fixed rate of either 3.072 mhz or 2.8224 mhz, depending on the required inpu t sample rate ( sr ). the da7219 includes a low power 24 - bit high quality audio adc that supports sampling rates from 8 khz to 96 khz. the sample rate is specified using the sr register. the adc can be enabled and disabled using adc_l_en . the adc channels offer a config urable digital gain from - 83.25 db to +12 db in 0.75 db steps after the digital conversion. individual gain settings can be programmed via the adc _l_digital_gain_status control . the currently active gain settings are stored in the adc_l_gain_status register . muting, and the ramping of digital gain changes, can be controlled using the dedicated adc_l_ctrl register . if the ramping i s enabled using the control bit adc_l_ramp_en , the rate of the ramping is controlled using gain_ramp_rate in the gain_ramp_ctrl register .
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 26 of 123 ? 2015 dialog semiconductor 9.3 digital engine the da7219 chip contains a digital engine that performs the signal processing and also provides overall system control. the input signals from the adcs are passed to the input filter block . the filter block includes a high - pass filter for dc offset removal and wind noise suppression, and an automatic level control . the signals from the input filters are sent to the digital mixer where they can be combined with signals from the tone generator and the digital audio interface (dai), and routed to the output filters and the dai. the output filters contain a high - pass filter for dc offset removal, and a fixed 5 - band equaliser to adjust the sound of the output signals. there is also a low latency sidetone path tha t can take one signal from the adc and apply gain before passing the signal straight to the outpu t filters. the filter paths are shown in more detail in figure 9 . finally a system controller module is included to ensure correct sequencing of the e vents required to bring up and shut down signal paths without creating pops and clicks. figure 8 : digital e ngine block diagram figure 9 : digital filters block diagram d i g i t a l e n g i n e a c c e s s o r y d e t e c t l o g i c s y s t e m c o n t r o l o u t p u t f i l t e r s h i g h p a s s 5 - b a n d e q s i d e t o n e p a t h w i t h g a i n i 2 c d a i t o n e g e n e r a t o r a n d s - r a m p i n p u t f i l t e r s h i g h p a s s m u x c h a r g e p u m p c o n t r o l c l o c k g e n e r a t i o n a l c a c c e s s o r y d e t e c t a n a l o g u e a u d i o i n p u t p l l c h a r g e p u m p s a n a l o g u e o u t p u t s d a i p a d s i 2 c p a d s o u t _ 1 _ f i l t e r i n _ 1 _ f i l t e r c i c 5 b e q s d m d w a s d m d w a g a i n s t a g e t o n e g e n + s r a m p f s d m 4 f s 2 f s f s 4 f s f s 2 f s 4 f s 8 f s f s d m m u x d a i a d c _ a u d i o _ d a t a d a c _ 1 l _ d a t a d a c _ 1 r _ d a t a d a i 5 b e q a c c e s s o r y d e t e c t a d c _ a c c d e t _ d a t a j a c k d e t a l c x t o m i c g a i n z e r o c r o s s f r o m m i c
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 27 of 123 ? 2015 dialog semiconductor 9.3.1 input p rocessing 9.3.1.1 adc digital gain the adc channels offer a config urable digital gain from - 83.25 db to +12 db in 0.75 db steps after the digital conversion. individual gain settings can be programmed via the adc_l_digital_gain control . the currently active gain settings are stored in the adc_l_gain_status register . 9.3.1.2 high - pass filter any dc offset from the input path is removed via iir filters (typically <2 hz roll - off, configurable). after reset the filters for both channels are enabled by default, but can be disabled by clear ing adc_hpf_en . the cut - off frequency of the filters can be programmed using adc_audio_hpf_corner . to improve the quality of microphone recordings, the da7219 provides a programmable high pass filter engine, enabled via adc_voice_en in the adc_filters1 register . for the first filter, in music mode adc_voice_en must be set to 0 and the hpf corner frequency is set using adc_audio_hpf_corner . in adc voice mode, adc_voice_en must = 1 and adc_hpf_en must = 1 in which case the hpf corner frequency is set using adc_voice_hpf_corner . th e low frequency roll off is configured over a wide range using the adc_voice_hpf_corner control. this allows for flexible removal of wind and pop noise. the input high - pass filter is controlled using adc_filters1 . for the first filter, in music mode adc_voice_en must be set to 0 and the hpf corner frequency is set using adc_audio_hpf_corner . in voice m ode , adc_voice_en must = 1 in which case the hpf corner frequency is s et using adc_audio_hpf_corner . the value of the hpf corner frequency also depends on the input sample rate ( sr ) as shown in table 23 . the sample rates available in the different adc power modes are summarised in table 23 . table 23 : input high - pass filter settings adc_voice_en adc _voice_hpf_ corner adc_audio_hpf_ corner sr sample rate (khz) 8 11.025 12 16 22.05 24 32 44.1 48 88.2 96 0 00 0.33 0.46 0.5 0.67 0.92 1 1.33 1.84 2 3.68 4 01 0.67 0.92 1 1.33 1.84 2 2.67 3.68 4 7.35 8 10 1.33 1.84 2 2.67 3.68 4 5.33 7.35 8 14.7 16 11 2.67 3.68 4 5.33 7.35 8 10.6 7 14.7 16 29.4 32 1 000 2.5 3.45 3.75 5 voice hpf not available for sample rates above 16 khz. 001 25 34.5 37.5 50 010 50 68.9 75 100 011 100 137.8 150 200 100 150 206.7 225 300 101 200 275.6 300 400 110 300 413.4 450 600 111 400 551.3 600 800
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 28 of 123 ? 2015 dialog semiconductor 9.3.1.3 automatic level control (alc) for improved sound recordings of signals with a large volume range, the da7219 offers a fully - configurable automatic recording level control (alc) for microphone inputs. this is enabled via the alc_en control . the alc monitors the digital signal after the adc and adjusts the microphones analogue and digital gain to maintain a consta nt recording level, whatever the analogue input signal level. operation of alc is illustrated in figure 10 . when the input signal volume is high, the alc system will reduce the overall gain until the output volume is below the specified maximum value. when the input signal volume is low, the alc will increase the gain until the output volume increases above the specified minimum value. if the output sig nal is within the desired signal level (between the specified minimum and maximum levels), the alc does nothing. the maximum and the minimum thresholds that trigger a gain change of the alc are programmed by the alc_thr eshold_min and alc_threshold_max controls. figure 10 : principle of operation of the alc in hybrid mode, the total gain is made up of an analogue gain, which is appl ied to the microphone amplifier , and a digital gain, which is implemented in the filtering stage. the alc block monitors and controls the gain of the microphone and the adc . a lthough the alc is controlling the gain, it does not modify an y of the registers mixin_l_gain or adc_l_gain , nor does it modify the digital gain register adc_l_gain . these registers are ignored while the alc is in operation. in d igital - only mode only the digit al gain in the adc is altered. a lthough the alc is controlling the gain, it does not modify adc_l_digital_gain in the adc_l_gain register . this register is ignored while the alc is in operation. hybrid mode should be used whenever analogue microphones are being used. t he hybrid analogue/digital gain mode (hybrid mode) can be enabled using. alc_sync_mode . the minimum and maximum levels of digital gain that can be applied by the alc are controlled using alc_atten_max and alc_gain_max . similarly the minimum and maximum levels of analogue gain are controlled b y alc_ana_gain_min and alc_ana_gain_max . the rates at which the gain is changed are defined by the attack and decay rates in register alc_ctrl2 . when attacking, the gain decreases with alc_attack rate. when decaying, the gain increases with alc_release rate. a l c i n p u t a l c g a i n a l c o u t p u t a l c m a x l e v e l a l c m i n l e v e l r e l e a s e t i m e a t t a c k t i m e
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 29 of 123 ? 2015 dialog semiconductor the hold - time is defined by alc_hold in the alc_ctrl3 register. this controls the length of time that the system maintains the current gain level before starting to decay. this prevents unwanted changes in the recording level when there is a short - lived spike in input volume, for example when recording spe ech. typically the attack rate should be much faster than the decay rate, as it is necessary to reduce rapidly increasing waveforms as quickly as possible, whereas fast release times will result in the signal appearing to pump. the alc also has an anti clipping function that applies a very fast attack rate when the input signal is close to full - range. this prevents clipping of the signal by reducing the signal gain at a faster rate than would normally be applied. the anti clip function is enabled using a lc_anticlip_en, and the threshold above which it is activated is set in the range 0.034 db/fs to 0.272 db/fs using alc_anticlip_step . a recording noise - ga te feature is provided to avoid increasing the gain of the channel when there is no signal, or when only a noise signal is present. boosting a signal on which only noise is present is known as noise pumping. the noise - gate prevents this. whenever the lev el of the input signal drops below the noise threshold configured in alc_noise , the channel gain remains constant. figure 11 : attack, delay and hold parameters 9.3.2 sidetone p rocessing there is a low latency filter channel between inputs and outputs for implementing a sidetone path. the gain is controlled using sidetone_gain and provides gain in the range - 42 db to +0 db in +3 db steps. the sidetone path is enabled using sidetone_en . it is muted using sidetone_mute_en . the output from the sidetone channel can be added to left or right (or both) output filters using outfilt_st_1l_src and outfilt_st_1r_src . the sidetone path is enabled using sidetone_en . it is muted using sidetone_mute_en . m a x m i n a t k d c y h l d i n p u t s i g n a l g a i n l e v e l a t k r a t e d c y r a t e t i m e t i m e
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 30 of 123 ? 2015 dialog semiconductor 9.3.3 tone g enerator parameter conditions min typ max unit single - tone frequency fs = 8,12,16,24,32,48,96khz fs = 11.025, 22.05, 44.1, 88.2khz 1 1 12000 11025 hz single - tone frequency step 0.2 hz dual - tone modulation frequency a 697 770 852 941 hz dual - tone modulation frequency b 1209 1336 1477 1633 hz output signal level 0 dbfs on/off pulse duration 10 2000 ms on/off pulse step size 10 to 200ms duration 200 to 2000ms duration 10 50 ms on/off pulse repeat programmable continuous 1,2,3,4, 5,6 cycles the tone gene rator contains two independent sine wave generators, swg1 and swg2 . each swg can generate a sine wave at a frequency (freq) from approximately 10 hz to 12 khz according to the programmed 16 - bit value: freq[15:0] = 2^16 f swg /12000 C 1, for sr2 = 8, 12, 16, 24, 32, 48,96 khz freq[15:0] = 2^16 f swg /11025 C 1, for sr2 = 11.025, 22.05, 44.1, 88.2 khz for swg 1 , the freq value is stored in two 8 - bit registers as freq1_u = freq[15:8] and freq1_l = freq[7:0]. the swg 2 frequency is programmed in the same way using freq2_u and freq2 _l . the output of the tone generator can come from either of the swgs , or from a combination of both of them as specified by swg_sel. in addition the tone generator can produce standard dual tone multi - frequency ( dtmf ) tone s using the two swgs if dtmf_reg = 1 and the required key pad value is programmed in dtmf_reg as shown in table 24 . table 24 : dtmf tones corresponding to the dtmf_reg value swg2 freq (hz) swg1 frequency (hz) 1209 1336 1477 1633 697 0x1 0x2 0x3 0xa 770 0x4 0x5 0x6 0xb 852 0x7 0x8 0x9 0xc 941 0xe 0x0 0xf 0xd the tone generator can produce 1, 2, 3, 4, 8, 16, or 32 beeps , or a continuous beep , as determined by beep_cycles . each beep has an o n period from 10 ms to 2 s as programmed in beep_on_per . and an o ff period from 10 ms to 2 s as programmed in beep_off_per . the tone generator is started by setting the start_stopn bit , and is halted by clearing this bit . if start_stopn is cleared, the tone generator stops at the completion of the current beep cycle or at the next zero - cross if the number of beeps is set to continuous ( beep_cycles = 110 or = 111) . the start_stopn bit is automatically cleared once the programmed number of beep cycles has been completed .
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 31 of 123 ? 2015 dialog semiconductor 9.3.4 digital router there is a digital router block which is configured by registers dig_routing_dai and dig_routing_dac. the router options are illustrated in figure 12 . figure 12 : da7219 digital router dig_routing_dac is used to select the inputs to go into the dac filter chain from the router. dig_routing_dai is used to select the inputs to go into the dai from the router. for example, for dac_l_src , data selection to the dac_l path is 00 = adc left output 01 = tone generator 10 = dai input left / dai mono mix 11 = dai input right / dai mono mix the same 2 - bit code (00, 01, 10, 11) is used for dac_r_src , dai_l_src and dai_r_src . 9.3.5 system c ontroller the system controller (sc) automates the sequencing of the multiple blocks required to set up one or more particular audio paths. it is an optional feature, and operates by performing register writes with optimal sequencing and timing, thus eliminating pops and clicks. system control for the inputs is controlled using system_modes_input , and for the outputs by using system_modes_output . writing to the mode_submit field either of these registers will cause the system controller to process both input and output paths. d a c _ l _ s r c d i g _ r o u t i n g _ d a c a d c _ l t o n e g e n d a i _ i n _ l d a i _ i n _ r d a c _ l d a c _ r d a i _ o u t _ l d a i _ l _ s r c d a i _ r _ s r c d a c _ r _ s r c d i g _ r o u t i n g _ d a i d a 7 2 1 9 d i g i t a l r o u t e r d a i _ o u t _ r 2 e [ 5 : 4 ] 2 e [ 1 : 0 ] 2 a [ 5 : 4 ] 2 a [ 1 : 0 ] [ 0 1 ] [ 1 0 ] [ 1 1 ] [ 0 0 ]
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 32 of 123 ? 2015 dialog semiconductor 9.3.6 output p rocessing 9.3.6.1 dac digital gain each channel includes individual gain settings that a re contr ollable in 0.75 db steps ranging from - 78 db (= mute) to 12 db using dac_l_digital_gain and dac_r_digital_gain . the currently active gain settings are stored in dac_l_gain_status and dac_r_gain_status registers. 9.3.6.2 high - pass filter any dc offset from the input path is removed via iir filters (typically <2 hz roll - off, configurable). after reset the filters for both channels are enabled by default, but can be disabled by clearing dac_hpf_en . the cut - off frequency of the filters can be programmed using dac_audio_hpf_corner . during playback, dedicated voiceband filtering can be enabled using dac_voice_en in the dac_filters1 register . in dac voice mode, dac_voice_en must = 1 and dac_hpf_en must = 1 in which case the hpf corner frequency is set using dac_voice_hpf_corner . the low frequency roll off is configured over a wide range using the dac_voice_hpf_corner c ontrol. in v oice mode, the wind noise high - pass filter cut - off frequency is determined by the settings of the adc_voice_hpf_corner and the dac_voice_hpf_corner register bits, these cut - off frequencies are not fixed and vary with the sample rate being used. table 25 s hows the cut - off frequencies for all valid settings of adc_voice_hpf_corner and dac_voice_hpf_corner , at all sample rates of 16 khz and below. table 25 : output high - pass filter settings dac_voice_en dac _voice_hpf_corner dac_audio_hpf_corner sr sample rate (khz) 8 11.025 12 16 22.05 24 32 44.1 48 88.2 96 0 00 0.33 0.46 0.5 0.67 0.92 1 1.33 1.84 2 3.68 4 01 0.67 0.92 1 1.33 1.84 2 2.67 3.68 4 7.35 8 10 1.33 1.84 2 2.67 3.68 4 5.33 7.35 8 14.7 16 11 2.67 3.68 4 5.33 7.35 8 10.6 7 14.7 16 29.4 32 1 000 2.5 3.45 3.75 5 voice hpf not available for sample rates above 16 khz. 001 25 34.5 37.5 50 010 50 68.9 75 100 011 100 137.8 150 200 100 150 206.7 225 300 101 200 275.6 300 400 110 300 413.4 450 600 111 400 551.3 600 800
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 33 of 123 ? 2015 dialog semiconductor 9.3.6.3 5 - band equalis er the gains of each band can be individually configured , from - 10.5 to 12.0 db in 1.5 db steps, using the dac_eq_band1 , dac_eq_band2 , dac_eq_band3 , dac_eq_band4 , dac_eq_band5 controls . the output filters can provide gain or attenuation in each of five separate (fixed) frequency bands using the 5 - band equaliser. the equaliser, for both left and right channels, is ena bled using dac_eq_en . the centre or cut - off frequency of each of the five bands dep ends on the output sample rate as shown in table 26 . table 26 : ou tput 5 - band equaliser centre/cut - off frequencies fs (khz) centre frequency (hz) at programmed s etting band 1 band 2 band 3 band 4 band 5 8 0 99 493 1528 4000 11.025 0 136 680 2106 5512 12 0 148 740 2293 6000 16 0 96 440 2128 8000 22.05 0 133 607 2933 11025 24 0 145 660 3191 12000 32 0 95 418 1797 16000 44.1 0 131 576 2386 22050 48 0 143 627 2596 24000 88.2 n/a n/a n/a n/a n/a 96 n/a n/a n/a n/a n/a figure 13 : equaliser filter b and 1 frequency response at fs = 48 khz
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 34 of 123 ? 2015 dialog semiconductor figure 14 : equaliser filter b and 2 frequency response at fs = 48 khz figure 15 : equaliser filter b and 3 frequency response at fs = 48 khz
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 35 of 123 ? 2015 dialog semiconductor figure 16 : equaliser filter b and 4 frequency response at fs = 48 khz figure 17 : equaliser filter b and 5 frequency response at fs = 48 khz 9.3.6.4 dac soft m ute to improve the users perception of audio reconfi gurations, the dac channel signals may be soft muted by asserting the control dac_softmute_en (in register . dac_filters5 ). the soft mute function attenuates the digital input to the dac, ramping t he gain down in steps of 0.1875 db f rom its current level to - 77.25 db, then completely muti ng the channel. when dac_softmute_en is released, the attenuation is set to - 77.25 db, and then ramped up to the previous gain level. b oth left and right channels of soft m ute enabled output amplifiers are muted simultaneously. the ramping up and down rate is dependent on the audio sample rate and can be individually configured using control dac_softmute_en . setting dac_softmute_en = 1 enables a soft mute on both channels. d uring active soft muting, the digital gain of the dac will be different to the value programmed inside controls dac_l_digital_gain_status and dac_r_digital_gain_status .
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 36 of 123 ? 2015 dialog semiconductor 9.4 output paths 9.4.1 digital to a nalogue c onverter (dac) the da7219 codec includes a stereo audio dac. left and right channels of the dac are independently and automatically enabled whenever the corresponding output filter channel is enabled. the dac is clocked at 3.072 mhz or 2.8224 mhz depending on the output sample rate ( sr ). left and right channels of the dac are independently and automatically enabled whenever the corresponding output filter channel is enabled. the integrated stereo dac is suitable for high quality audio playback by mp3 player s and by portable multimedia players of all kinds. the left and right channels of the dac can be individually enabled using controls dac_l_en and dac_r_en . each channel includes individual gain setting s that are controllable in 0.75 db steps from - 78 db to 12 db using dac_l_digital_gain_status and dac_r _digital_gain_status . the currently active gain settings are stored in dac_l_gain_status and dac_r_gain_status registers. on the dedicated dac_l_ctrl and dac_r_ctrl registers, settings such as mute and ramping of gain changes can be configured. if ramping is enabled using the control bits dac_l_ramp_en or dac_r_ramp_en, the rate of the ramping can be controlled using gain_ramp_rate i n the gain_ramp_ctrl register. a digital high - pass filter for each dac channel is implemented with a 3 db cut - off frequency controlled in the dac_filters1 register by dac_audio_hpf_corner . the high - pass filter is enabled by control dac_hpf_en . after reset, the high pass filters f or both channels are enabled by default. 9.4.2 headphone o utputs figure 18 : headphone output paths showing the two amplifiers 9.4.2.1 buffer amplifier the left - channe l buffer amplifier mixout_l, is enabled by settin g mixout_l_amp_en = 1. the right channel output buffer mixout_r is controlled in the same manner. d i g i t a l e n g i n e d a c l d a c r o u t p u t f i l t e r s @ s r ( h i g h - p a s s , 5 - b a n d e q ) h p _ l h p _ r h p _ l _ a m p - 5 7 : 1 . 0 : + 6 d b h p _ r _ a m p - 5 7 : 1 . 0 : + 6 d b d a 7 2 1 9 m i x o u t _ l m i x o u t _ r
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 37 of 123 ? 2015 dialog semiconductor 9.4.2.2 headphone amplifiers each headphone path has one headphone amplifier stage providing a gain of C 57 db to +6 db i n 1.0 db steps. the amplifiers are configured to operate in single ended mode . the headphone loads are connected between hp _ l and hp _r and the internal ground set by the mic/gnd switches set during the detect sequence. the headphone amplifiers are config ured to operate in true - ground (charge pump) mode. in true - ground supply mode, the charge pump must be enabled to generate the ground - centred supply rails for the amplifiers. the left - chann el headphone amplifier (hp_l_ctrl ) is enabled by setting hp_l_amp_en = 1. the output stage is enabled independently by setting hp_l_amp_oe = 1. the amplifier gain can be set in the range of C 57 db to +6 db in 1.0 db steps using hp_l_amp_gain . g ain updates can be ramped through all intermediate value s by setting hp_l_amp_zc_en = 1. this ramp setting overrides the settings of hp_l_amp_zc_en . to prevent zipper noise when gain ramping is selected, the gain is ramped through additional sub - range gain steps. as an alternative to gain ramping, gain updates can be synchronised with signal zero - crossings by set ting hp_l_amp_zc_en = 1. if no zero - crossing is detected within the timeout period, then the gain update is applied unconditionally. the timeout period is approximately 0.1 second, and is hard - coded into the device. it is not user - configurable. the amplifier can be muted by setting hp_l_amp_mute_en = 1. the amplifier can be put in its minimum gain configuration by setting hp_l_amp_min_gain_en = 1. if either zero - crossing or ramping are enabled when minimum ga in is set, the ramping or the zero crossing or both will be performed while activating the minimum gain. the right - channel headphone amplifier (hp_r_ctrl) is controlled in the same manner. 9.4.3 charge pump control the charge pump is enabled by asserting cp_en in the cp_ctrl register. once enabled, the charge pump can be controlled manually or automatically. when under manual control ( cp_mchange = 00), the output voltage level is directly determined by cp_mod. the amount of charge stored, and therefore the voltage generated, by the charge pump is controlled by the charge pu mp controller . as the power consumed by devi ces such as amplifiers is proportional to voltage2, significant power savings are available by matching the charge pumps output with the systems power requirement. t here are three modes of operation that are determined by the cp_mchange setting. all thre e modes are described in table 27 .
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 38 of 123 ? 2015 dialog semiconductor table 27 : charge pump output voltage control charge pump tracking mode cp_mchange charge pump output voltage details 00 reserved reserved 01 voltage level depends on the programmed gain setting the charge pump controller monitors the pga volume settings, and generates the minimum voltage that is high enough to drive a full - scale signal at the current gain level. 10 voltage level depends on the dac signal envelope the charge pump controller monitors the dac signal, and generates a voltage that is high enough to drive a full - scale output at the current dac signal volume level 11 voltage level depends on the signal magnitude and the programmed gain setting the charge pump monitors both the programmed volume settings and the actual signal siz e, and generates the appropriate output voltage. this is the most power - efficient mode of operation. when cp_mchange is set to 10 (tracking dac signal s ize, described in table 27 ) or cp_mchange is set to 11 (tracking the output signal size), the charge pump switches its supply between the vdd_a rail and the vdd_a/2 rail depending on its power requirements. when low output voltages are needed, the charge pump saves power by using the lower - voltage vdd_a /2 rail. the switching point between using the vdd_a rail and the vdd_a/2 rail is determined by the cp_thresh_vdd2 register setting. the switching points determined by cp_thresh_vdd2 vary between the two cp_mchange modes , and are summarised in table 28 and table 29 . w hen the charge pump output voltage is controlled manually ( cp_mchange = 00) or when it is tracking the pga gain settings ( cp_mchange = 01), the charge pump always takes its supply from vdd_cp. table 28 : cp_thresh_vdd2 settings in dac_vol mode ( cp_mchange = 10) cp_thresh_vdd2 setting approximate switching point ( note 6 ) notes 0x01 - 30 dbfs do not use. very power - inefficient as nearly always vdd/1 0x03 - 24 dbfs not recommended. very power - inefficient as nearly always vdd/1 0x07 - 18 dbfs good to use but not power efficient 0x0e - 12 dbfs good to use 0x10 - 10 dbfs recommended setting 0x3f C 0x13 not recommended
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 39 of 123 ? 2015 dialog semiconductor table 29 : cp_thresh_vdd2 settings in signal size mode ( cp_mchange = 11) cp_thresh_vdd2 setting approximate switching point ( note 6 ) notes 0x00 never not recommended. always vdd/1 mode 0x01 never not recommended. always vdd/1 mode 0x02 - 32 dbfs not recommended. very power - inefficient as nearly always vdd/1 0x03 - 24 dbfs good to use 0x04 - 20 dbfs good to use 0x05 - 17 dbfs good to use 0x06 - 15 dbfs recommended setting 0x07 - 13 dbfs good to use 0x08 - 12 dbfs good to use 0x09 - 11 dbfs good to use 0x0a - 10 dbfs good to use 0x0b - 9 dbfs not recommended. vdd/2 begins to clip 0x0c never not recommended. always vdd/2 mode 0x0d never not recommended. always vdd/2 mode 0x0e never not recommended. always vdd/2 mode 0x0f never not recommended. always vdd/2 mode note 6 full scale (fs) = 1.6 * vdd_a 9.4.4 tracking the demands on the charge pump output there are three points at which the demands on the charge pump can be tracked. these tracking points are determined by cp_mchange . 9.4.4.1 cp_mchange = 01 (tracking the pga gain setting) if cp_mchange = 01, it is the pga gain setting that is tra cked, and which provides the feedback to boost the clock frequency when necessary. 9.4.4.2 cp_mchange = 10 (tracking the dac signal setting) if cp_mchange = 10 , it is the size of the dac signal that is tracked, and which provides the feedback to boost the clock frequency when necessary. 9.4.4.3 cp_mchange = 11 (tracking the output signal magnitude) if cp_mchange = 1 1, it is the magnitude of the output signal that is tracked, and which pro vides the feedback to boost the clock frequency when necessary.
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 40 of 123 ? 2015 dialog semiconductor 9.5 advanced accessory detection (aad) if the da7219 is configured for advance d accessory detection (aad), the insertion of a jack wakes the system up. no external clocking is required to detect a jack insertion, and the clock is only requested if the input is changing and if debouncing is required. this ensures the lowest possible power consumption with no dig ital leakage. once a jack has been inserted, the aad differentiates between a three - pole jack (used on headphones and lineouts) and a four - pole jack (used on headsets) . two - pole jacks are detected as a three - pole jack, and will work as designed as a mono o utput . there are two combinations of four - pole jack available in the market, both of which are supported by the aad. the jack configurations are shown in figure 19 . jack type position ctia omtp sleeve mic gnd ring2 gnd mic ring1 hp_r hp_r tip hp_l hp_l figure 19 : jack socket v ariants on detectin g the insertion of a jack, the da7219 moves to the microphone - detect state where it drives current down the sleeve pin and measures the impedance to the ring2 pin, which will be connected to gnd _hp by the internal gnd switch. if the impedance measured between the sleeve and ring2 pins is below 500 ? (configurable) , the da7219 detects the connected accessory as a three - pole jack. the da7219 then returns to the jack detection state to poll for removal, but continues to periodically pulse current down the sleeve pin to verify that the connected accesso ry is three - pole. this continued polling avoids an incorrect detection, for example, if a four - pole accessory is inserted with a button depressed. note that a two - pole jack is detected as three - pole jack, and will work as designed as a mono output. if the impedance measured between the sleeve and ring2 pins is above 500 ? (configurable), the da7219 detects the connected accessory as a four - pole jack. the da7219 then moves to the pin order - detect state, where it first drives current down the sleeve and then the ring2 pins, and compares the voltages measured in each case. the pin that develops the largest voltage will be deemed to be the accessorys microphone, and the other pin as the ground. the headphone impedance can also be to determine whether the outpu t is to a headphone or to a line output. impedance measurements below a pre - set threshold are deemed to be headphones, and impedances above the threshold are line outputs. the da7219 will then move to the button detect state, where polling is carried out t o detect button presses. if a butt on is pressed while micbias is o ff, the da7219 can only detect that a button has been pressed, but cannot distinguish between the buttons. to distinguish which one of up to four buttons was pressed , the micbias rail must be enabled so that the impedance can be measured between the mic and gnd pins. see section 9.5.6 for further details. s l e e v e r i n g 2 r i n g 1 t i p
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 41 of 123 ? 2015 dialog semiconductor while any of the four possible buttons is being pressed, any further button presses are ignored. only once the first button has been released can a second or subsequent button press be detected. detection of the jack type and its configuration, detection of the number of buttons, detec tion of a mic input, and detection of headphone or line outputs are all performed automatically when the aad block is enabled. on detectin g a button press, the da7219 can identify all buttons as defined in the android wired headset specification (v1.1) wh en micbias is present . t he da7219 also offers the possibility of overriding the automatically detected accessories, and of setting them manually. a full cross - reference of the da7219s functionality and power consumption in different modes is listed in table 19 . 9.5.1 configuring advanced accessory detection (aad) aad is enabled by setting accdet_en = 1. within the aad block, all individual accessory detection measurements can be enabled or disabled, and all accessory detect interrupt signals can be masked. all accessory detection measure ments can be manually overridden, and the current statuses of all measurements can be interrogated from the status register fields. jack type detection , jack configuration detection, and button detection are all based on measurements of resistance between different pins. the resistance thresholds for every measurement type are all configurable by using the rele vant register fields. a signal timing diagram is illustrated in figure 20 . these features are all summarised in table 30 , and are described in greater detail in the following sections.
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 42 of 123 ? 2015 dialog semiconductor table 30 : da7219 advanced accessory detection (aad) feature summary feature da7219 support configurati on host reporting jack insertion/removal d etection yes enabled when system_active and accdet_en are both 1. jack insertion latency set by jackdet_debounce (1 ms < -- > 1 s). host notifiaction via e_jack_inserted and e_jack_removed irq events. jack type d etection yes - 3 - pole / 4 - pole jack type detection runs on insertion, duration set by jack_detect_rate . host configurable microphone detection impendance threshold mic_ det_thresh (100/200/500/750 ?). optional host manual type override provided. host notification via e_jack_detect_complete irq event. jack_type_sts register available for host readback ( 3 - pole or 4 - pole reported), data is qualified by e_jack_detect_complete . pin order d etection yes - ctia/omtp detection with gn d switching runs on insertion if a 4 - pole jack is detected . optional host manual pin order override provided. host notification via e_jack_detect_complete irq event. jack_pin_order_sts register available for host readbac k (lrgm or lrmg reported ), data is qualified by e_jack_detect_complete . button press detection yes - press / release detection for a,b,c and d button impedances with +/ - 1% accuracy, as per google chromebook headset accessory electrical specification. button detection en able and frequency ( 2 ms< -- > 500 ms) set by button_config . host controlled a_d_button_thresh , d_b_button_thresh , b_c_bu tton_thresh, and c_mic_button_thresh set the adc voltage thresholds for button press i mpedance measurements = (r load / ( r load + r micbias )) host notification via e_button_*_pressed and e_button_*_released irq events, (where * = a/b/c/d). button_type_sts 8 bit adc measurement result also available for host readback. interrupt reporting yes - single dedicated h/w interrupt line. all events are maskable and are 'write 1 to clear'. interrupt line asserted to host when any unmasked events are captured. interrupt line is de asserted when all unmasked events have been cleared by host. micbias isolation yes - both on insertion and removal. host control when t h e micbias rail can be enabled ( requires vdd_mic) with micbias1_en . accdet will automatically enable the micbias ldo following e_jack_detect_complete if jack_type_sts reports '4 pole'. micbias is auto disabled, discharged and isolated on e_jack_removed to prevent audible artefacts on hps during a fast jack removal. micbias_up_sts available for host readback to report micbias rail is up.
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 43 of 123 ? 2015 dialog semiconductor feature da7219 support configurati on host reporting hp_l impedance measurement yes - supported by da7219 using s/w controlled sequence following insertion. n/a : this feature does not live in the a ccdet block. n/a : this feature does not live in the a ccdet block. hp_l / hp_r to gnd when device unpowered yes - supported by da7219 usi ng pulldown on hps. n/a : this feature does not live in the a ccdet block. n/a figure 20 : signal timing diagram for the aad function note 7 vdd_mic must always be greater than vdd h o s t i r q c l e a r h o s t i r q c l e a r h o s t i r q c l e a r h o s t i r q c l e a r h o s t i r q c l e a r d e t a c c d e t s t a t e n o _ j a c k i n s _ d e b j a c k _ d e t e c t j a c k _ i n b t n _ c h e c k j a c k _ i n b t n _ c h e c k j a c k _ i n r e m _ d e b n o _ j a c k n i r q e _ j a c k _ i n s e r t i o n e _ j a c k _ d e t e c t _ c o m p l e t e j a c k _ t y p e _ s t s d e f a u l t 3 - p o l e / 4 - p o l e d e f a u l t l r g m C c t i a / l r m g - o m t p j a c k _ p i n _ o r d e r _ s t s h o s t t y p e c h e c k m i c b i a s e _ j a c k _ r e m o v a l e _ d _ b u t t o n _ p r e s s e d e _ d _ b u t t o n _ r e l e a s e d d e f a u l t d e f a u l t d b u t t o n p r e s s j a c k i n s e r t i o n d e t e c t i o n c o m p l e t e b u t t o n p r e s s e d b u t t o n r e l e a s e d j a c k r e m o v a l m i c m i c b i a s o f f m i c b i a s o n m i c b i a s o f f m i c b i a s _ u p _ s t s ( 2 C 5 0 0 m s ) ( 1 m s ) ( 6 4 C 5 1 2 m s ) ( 5 m s C 1 s ) r e d : d e v i c e p i n b l u e : d e v i c e i n t e r n a l s i g n a l
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 44 of 123 ? 2015 dialog semiconductor 9.5.2 detection of jack insertion or removal whenever a jack is inserted, a jack insertion event is flagge d by e_jack_inserted getting set to1 . similarly, a jack removal event is flagged by e_jack_removed getting set to 1. the presence or absence of a jack is recorded in jack_insertion_sts . any jack insertion will be detected, and is recorded by the setting of jack_insertion_sts . the register field jack_insertion_sts = 1 if a jack has been inserted, and jack_insertion_sts = 0 if no jack has been inserted. j ack detection latency, that is, the time from an e_jack_insertion event to the point where e_jack_detect_complete is asserted, is configurable using jack_detect_rate . the jack detection latency times are different for three - pole and four - pole jacks, and are listed in table 22: jack detection latency timings controlled by jack_detect_rate jack_detect_rate value three - pole jacks (ms) four - pole jacks (ms) 00 32 64 01 64 128 10 128 256 11 256 512 debouncing is avaliable on jack insertion and removal events. debounce on jack insertion is specified using jackdet_debounce, and on jack re moval using jackdet_rem_deb . the debounce times are listed in table 31 and table 32 . table 31 : debounce settings for jack insertion e vents jackdet_debounce debounce time (ms) 000 5 001 10 010 20 (default) 011 50 100 100 101 200 110 500 111 1 table 32 : debounce settings for jack removal events jackdet_rem_deb debounce time (ms) 00 1 (default) 01 5 10 10 11 20 the jack insertion, jack removal, and jack complete interrupts can be masked using the register fields in the accdet_irq_mask_a register. the jack insertion interrupt is masked by setting m_jack_inserted = 1, the jack removal interrupt is masked by setting m_jack_removed = 1, and the jack detection complete interrupt is masked by setti ng m_jack_detect_complete = 1. these masking fields mask the interrupt signals, but do not prevent updating of the event fields or the status fields previo usly described.
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 45 of 123 ? 2015 dialog semiconductor 9.5.3 three - pole or four - pole jack insertion the type of jack inserted can be determined automatically by setting jack_type_det_en = 1. once the jack insertion measurement has been completed as indicated by e_jack_detect_complete = 1, the aad determines whether a three - pole or a four - pole jack has been inserted. this is done by measuring the resistance between the sleeve and the ring2 pins. if the measured impedance is below the threshold setting, a three - pole jack is deemed to have been inserted. if the resistance is above this threshold setting, a four - pole jack is deemed to have been inserted. note that if a mono two - pole jack is inserted, the aad will detect this as a three - pole jack, but the two - pole jack will work as de signed, that is, as a mono output. the threshold setting used to determine whether a three - pole or a four - pole jack has been inserted is set using mic_det_thresh. the settings are listed in table 33 . table 33 : resistance threshold settings for three - pole and four - pole jack determination mic_ det_thresh resistance threshold ( ?) 00 200 01 500 (default) 10 750 11 1000 once the jack type has been successfully determined, the type of jack is recorded in jack_type_sts . a three - pole jack is indicated by jack_type_sts = 0, and a four - pole jack by jack_type_sts = 1. the jack type status recorded in the registe r field jack_type_sts is not valid until the measurement has been completed. measurement completion is indicated when e_jack_detect_complete = 1. note that e_jack_detect_complete = 1 indicates the completion of both the jack_type_sts measurement and the ja ck_pin_order_sts measurement. the measurement of the type of jack, which is performed automatically when jack_type_det_en = 1, can be overridden if required. to do this, set jack_type_det_en = 0 to prevent the measurement taking place, and then use the jack_type_force register field to force the jack type. a three - pole jack is specified by setting jack_type_force = 0, and a four - pole jack by setting jack_type_force = 1. 9.5.4 jack pin order detection with four - pole jacks two different po larities are widely used with four - pole jacks. these are the ctia tip - ring - ring - sleeve configuration of gnd - mic - right - left, and the omtp configuration of mic - gnd - right - left. if pin_order_det_en = 1, the detection of jack configuration is performed automatically. the measurement of jack configuration can be overridden by setting pin_order_det_en = 0, and using pin_order_force = 0 to specify the ctia configurations. setting pin_order_force = 1 specifies the omtp configuration. the jack configuration status recorded in the register field jack_pin_order_sts is not valid until the measurement has been completed. measurement completion is indicated when e_jack_detect_complete = 1. not e that e_jack_detect_complete = 1 indicates the completion of both jack_type_sts measurement and jack_pin_order_sts measurement.
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 46 of 123 ? 2015 dialog semiconductor 9.5.5 headphone output and line output the da7219 can detect whether the output is a headphone or a line output. headphone or lineout detection is enabl ed by setting hptest_en = 1. the impedance is measured between hp_l (or hp_r) and the local gnd connection on either sleeve or ring2 (depending on the jack configuration) to determine whether the output is to a headphone or to a lineout. impedance measurements below a pre - set threshold are deemed to be headphones, and impedances above the threshold are line outputs. the threshold value is set between 1 and 1 0 k ? by setting hptest_res_sel appropriately. the threshold s ettings available are listed in table 34 . the tone generator is used to develop a slow s - ramp of the signal amplitude at a frequency below the audible range on the hp outputs. the s - ramp profile is configurable for maximum flexibility. the device monitors the current drawn by the hp amps during this process, and reports back the load as either above or below the threshold level . the accuracy of the measurement is 40%. the host ap must control the test: program the s - ramp profile initia lise the da7219 signal path and outputs initiate the s - ramp function read back the impedance detection status register for the load condition. table 34 : resistance threshold settings for headphone and lineout determination hptest_res_sel setting test threshold impedance (k ? ) 00 1.0 01 2.5 10 5.0 11 10.0 the result of the headphone threshold test is stored in hptest_comp . 9.5.6 detection of buttons after successful detection of the insertion of a four - pole jack (e_jack_detect_compete = 1 and jack_type_sts = 1), the da7219 will move to th e button detect state, where polling is carried out for button presses. if a button is pressed while micbias is off, the da7219 can only detect that a button has been pressed, but cannot distinguish between the buttons. on detectin g a button press, the da7 219 can identify all buttons as defined in the android wired headset specification (v1.1) when micbias is present . the android wired audio headset specification (v1.1) specifies the impedance associated with any button press. t he impedance is measured betw een the mic and gnd. note that when measuring the impedance of a button press, the measured impedance includes both the impedance of the resistor associated with a button and the impedance of the microphone. this is illustrated in figure 21 . while any of the four possible buttons is being pressed, any further butto n presses are ignored. only after the first button has been released can a second or subsequent button press be detected.
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 47 of 123 ? 2015 dialog semiconductor figure 21 : measuring the impedance of a button press the android wired audio headset specification (v1.1) stipul ates the functions and names of the four possible buttons on a headset. these are listed in table 35 . table 35 : button names a nd functions in android devices button function function a play, pause, or hook (short press) trigger assist (long press) next (double - press) function b volume + function c volume - function d google voice search feature headsets with only one button must implement function a. headsets with multiple buttons must implement functions according to the following patterns: two functions: functions a and d three functions: functions a, b, and c four functions: functions a, b, c, and d whenever a button is pressed, a button press event is flagged by e_button_ _pressed getting set = 1 . similarly, a button release event is flagged by e_button__released getting set = 1. m i c o r g n d l e f t r i g h t g n d o r m i c r 1 b u t t o n a r 2 b u t t o n b r 3 b u t t o n c r 4 b u t t o n d m e a s u r e d i m p e d a n c e m i c r o p h o n e n o t e : t h e i m p e d a n c e f o r a n y b u t t o n p r e s s i s m e a s u r e d b e t w e e n m i c a n d g n d . n o t e t h a t t h e c i r c u i t i n c l u d e s b o t h t h e r e s i s t o r a s s o c i a t e d w i t h t h e b u t t o n a n d t h e m i c s i m p e d a n c e i n p a r a l l e l .
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 48 of 123 ? 2015 dialog semiconductor the measured impedance of the last button press is rec orded in button_type_sts. the impedance measurements can be averaged using button_average. averaging in this manner provides greater immunity to spurious measurements caused my noise, but at a cost of consuming more power and of increasing the measurement latency (every extra measurement used in the averaging takes approximate ly 1 ms to perform). the number of measurements that are used in the averaging are listed in table 36 . table 36 : setting the number of measurements used in averaging button_average setting number of measurements used in averaging 00 1 01 2 10 4 11 8 the button press interrupts can be masked by asserting the register fie lds m_button__pressed. the button released interrupts can be masked by settin g m_button__released = 1. these masking fields mask the interrupt signals, but do not prevent updating of the event fields or the status fields previously described. the impedance threshold between button a and button d is specified using a_d _button_thresh, and is specified as (r load / r load + r micbias ). similarly, the impe dance threshold between button d and button b is specified using d_b _button_thresh, and is specif ied in the same manner (r load / r load + r micbias ). the impedance threshold between button b and button c is specified using b_c _button_thresh, and is specified in the same manner (r load / r load + r micbias ). the impedance threshold between button c and mic is specified using c _mic_button_thresh and is again specified in the same manner (r load / r load + r micbias ). the time between the periodic button press measurements is specified using button_config . the inter - meas urement period can be between 2 ms and 500 ms. the button_config register is only active after a four - pole jack has been detected. setting button_config = 0 also disables the button measurements.
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 49 of 12 3 ? 2015 dialog semiconductor 9.6 clocking the internal system clock (sysclk) from which all other clocks are derived is always at one of two possible frequencies: 12.288 mhz for sr from the 48 khz family (8, 12, 16, 24, 32, 48, 96 khz) 11.2896 mhz for sr from the 44.1 khz family (11.025, 22.05, 44.1, 88.2 khz). the da7219 can run with or without an applied mclk. if no mclk is applied, the internal reference oscillator will clock the device. how ever when using the dai an mclk must be provided and correctly configured. the da721 9 contains a phase - locked loop ( pll ) , which supports a range of clocking modes and input clock (mclk) frequencies. 9.6.1 mclk input mclk is the master clock input which must be in the range of 2 to 54 mhz. mclk can be applied as a full - amplitude square wave, or as a low - amplitude sine wave if the mclk squarer circuit has been enabled. the clock squarer circuit is enabled by writing pll_mclk_sqr_en = 1. this clock squarer allows a sine wave or other l ow amplitude clock (down to 300 mvpp) to be applied to the chip. the mclk input is ac coupled on chip when using the clock squarer m ode. 9.6.1.1 mclk detection a clock detection circuit will set bit [0] of pll_srm_status = 1 whenever the applied mclk frequency is above the minimum detecti on frequency of approximately 1 mhz. whenever this bit is high, the mclk signal is selected as the clock input to the pll. 9.6.2 au dio reference o scillator for best audio performance, a system clock within the specified range is required. the da7219 codec has an internal reference oscillator that provides the system clock when there is no valid mclk signal. the reference oscillator is automatically enabled whenever the codec is in active mode and the mclk frequency is below the minimum frequency of 1 mhz. when the codec enters standby mode , the oscillator is automatically disabled to save power . 9.6.3 pll bypass mode if an mclk signal at 11. 2896/12.288 mhz or 22.5792/24.576 mhz or 45.1584/49.152 mhz is available, the pll is not required and should be disabled to save power. pll bypass mode is activated by setting pll_mode = 00. in this mode the pll is bypassed and an audio frequency clock is applied to the mclk pin of the codec. the required clock frequency depends on the sample rate at which the audio dacs and adcs are operating. these clock frequencies are summarized in table 37 for the range of dac and adc sample rates that can be configured using the sr register.
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 50 of 123 ? 2015 dialog semiconductor table 37 : sample rate control register and corresponding system clock frequency sample rate, fs (khz) sr register system clock frequency (mhz) 8 0001 12.288 11.025 0010 11.2896 12 0011 12.288 16 0101 12.288 22.05 0110 11.2896 24 0111 12.288 32 1001 12.288 44.1 1010 11.2896 48 1011 12.288 88.2 1110 11.2896 96 1111 12.288 if digital playback or record is required in bypass mode then the mclk frequency should be set to 11.2896/12.288 mhz, or to 22.5792/2 4.576 mhz, or to 45.1584/49.152 mhz and pll_indiv should be programmed accordingly. if no valid mclk is detected, the output of the internal reference oscillator is used instead. however in this case only analogue bypass paths may be used. 9.6.4 normal pll mode (dai master) the da7212 contains a phase locked loop (pll) that can be used t o generate the required 11.2896 mhz or 12.288 mhz internal system clock when a frequency of between 2 and 54 mhz is applied to mclk. this allows sharing of clocks between devices in an application, reducing total system cost. for example, the c odec may operate from common 13 mhz or 19.2 mhz system clock frequency. the pll is enabled by asserting pll_mode = 01. once the pll is enabled and has achieved phase lock, pll bypass mode is disabled, and the output of the pll is used as the system clock. the pll input divider register ( pll_indiv ) is used to reduce the pll reference frequency to the usable range of 2 to 54 mhz as shown in table 38 , this reduces the pll reference frequency according to the following equation: f ref = f mclk n table 38 : pll input divider mclk input frequency (mhz) input divider, (n) pll_indiv register (0x27 [3:2]) 2 C 5 1 000 5 C 10 2 001 10 C 20 4 010 20 C 40 8 011 40 C 54 16 100 the value of the pll feedback divider is used to set the voltage controlled oscillator (vco) frequency to 8 times the required system clock frequency (see table 37 ). f vco = f ref pll feedback divider
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 51 of 123 ? 2015 dialog semiconductor the value of the pll feedback divider is an unsigned number in the range of 0 to 128. it consists of seven integer bits and 13 fractional bits split across three registers: pll_integer holds the seven integer bits pll_frac_bot holds the top bits (msb) of the fractional part o f the divisor pll_frac_bot holds the bottom bits (lsb) of the fractional part of the divisor 9.6.5 example calculation of the feedback divider setting: we will use as an example a codec opera ting with fs (sample rate) = 48 khz and a reference input clock frequency of 12.288 mhz. the required output frequency is 98.304 mhz. the reference clock input = 12.288 mhz, which falls in the range 10 - 20 mhz so pll_indiv be set to 0b010 (dividing the reference input frequency by 4 C see table 38 . the formula for calculating the feedback divider is: feedback divider (f) = vco output frequency * input divider ( pll_indiv ) / reference input clock feedback divider = (98.304 * 4) / 12.288 = 32 so pll_fbdiv_integer (holding the seven integer bits) = 0x20 pll_fbdiv_frac_top (holding the top bits (msb) of the fractional par t of the divisor) = 0x00 pll_fbdiv_frac_bot (holding the bottom bits (lsb) of the fractional part of the divisor) = 0x00 table 39 shows example register settings that will co nfigure the pll when using a 13 mhz, 15 mhz or 19.2 mhz clock. note that any mclk i nput frequency between 2 and 54 mhz is supported. pll_indiv must be used to reduce the pll reference frequency to the usable range of 2 to 5 mhz as shown in table 39 . table 39 : example pll configurations mclk input frequency (mhz) system clock frequency (mhz) pll_mode register pll_frac_top register pll_frac_bot register pll_integer register 13 11.2896 0x01 0x19 0x45 0x1b 13 12.288 0x01 0x07 0xea 0x1e 15 11.2896 0x01 0x02 0xb4 0x18 15 12.288 0x01 0x06 0xdc 0x1a 19.2 11.2896 0x01 0x1a 0x1c 0x12 19.2 12.288 0x01 0x0f 0x5c 0x14
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 52 of 123 ? 2015 dialog semiconductor 9.6.6 srm pll mode (dai slave) srm mode enables the pll output clock to be synchronized to the incoming wclk signal on the dai. the srm pll mode is enabled by setting pll_mode = 10. when using the digital audio interface in slave mode with the srm enabled, removing and re - applying the dai interface word clock wclk may cause the pll lock to be lost. to re - lock the pll it is recommended that you disable the srm ( pll_mode = 00), reset the pll by re - writing to register pll_integer , and then re - enable the srm ( pll_mode = 10) after the dai wclk has been reapplied. when switching sample rates b etween 44.1 khz and 48 khz (or between the multiples of these sample rates), srm must be disabled and then re enabled using register bit pll_mode . 9.7 reference g eneration 9.7.1 voltage r eferences the audio circuits use supply - derived references of 0.45vdd (vmid) and 0.9vdd (dacref). there is also bandgap - derived fixed voltage reference of 1.2 v (vref). all three voltage references require of f - chip decoupling capacitors ( see appendix b.6 ) . both vref and vmid are automatically enabled whenever the device enters active mode . they are automatically disab led when entering standby mode. the vmid reference comes from a high - resistance voltage divider, which combines with the decoupling capacitor to create a large rc (resistance - capacitance) time constant. this ensu res a noise - free vmid ref erence . to minimise startup time, set vmid_fast_charge = 1 . this enables a low resistance path to charge the decoupling capacitor faster . fast charge (vm id_fast_charge) must be disabled after start - up as it will increase the noise on the vmid reference. the bandgap reference vref also takes time to charge its decoupling capacitor, but an internal timer ensures that no circuit that requires vref is enabled until vref has reached 1.2 v. the dacref voltage reference is produced from vmid by a times - two buffer so is capable of charging its decoupling capacitor quickly. 9.7.2 bias currents da7219 has a master bias current generation block that is enabled by default us ing the bias_en bit. master bias current generation is set to on by default. each sub system has its own local current generation block, which is automatically enabled whenever any of its sub - blocks are enab led. 9.7.3 voltage l evels 9.7.4 io voltage l evel the digital input/output pins can be set to operate in either a high voltage (2.5 to 3.6 v) or low voltage (1.5 to 2.5 v) range using the io_voltage_level bit . see table 40 . table 40 : io voltage level setting io_voltage_level setting digital i/o voltage range (v) 0 2.5 to 3.6 1 1.2 to 2.5
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 53 of 123 ? 2015 dialog semiconductor 9.8 i2c control i nterface the da7219 is completely software - controlled from the host by registers. the da7219 provides an i2c compliant serial control interface to access these registers. data is shifted into or out of the da7219 under the control of the host processor, which also provides th e serial clock. the i2c clock is supp lied by the scl line and the bi - directional i2c data is carried by the sda line. the i2c interface is open - drain supporting multiple devices on a single line. the bus lines have to be pulled high by external pull - up re sistors (1 k? to 20 k? range). the attached devices only drive the bus lines low by connecting them to ground. this means that two devices cannot conflict if they drive the bus simultaneously. table 41 : device i2c slave addresses re gister cif_i2c_addr_cfg device i2c address 00 0x18 01 0x19 10 0x1a (default) 11 0x1b in standard/fast mode the highest frequency of the bus is 1 mhz. the exact frequency can be determined by the application and does not have any relation to the da7219 internal clock signals. da7219 will follow the host clock speed within the described limitations and does not initiate any clock arbitration or slow down . in high - speed mode the maximum frequency of the bus can be increased up to 3.4 mhz. this mode is supported if the scl line is driven with a push - pull stage from the host and if the host enables an external 3 ma pull - up at the sda pin to decrease the rise time of the data. in this mode the sda line on da7219 is able to sink up to 12 ma. in all other respects the high speed mode behaves as the standard/fast mode. communication on the i2c bus always takes place between two devices, one acting as the master a nd the other as the slave. the da7219 will only operate as a slave . the i2c interface has direct access to the whole register map of the da7219 . figure 22 : schematic of the i2c control interface bus all data is transmitted a cross the i2c bus in groups of eight bits. to send a bit the sda line is driven to the intended state while the sda is low (a low on sda indicates a zero bit). once the sda has settled, the scl line is brought high and then low. this pulse on scl clocks the sda bit into the receivers shift register. a two byte serial protocol is used containing one byte for address and one byte for data. data and address transfer is transmitted msb first for both read and write operations. all transm ission begins with the start condition from the master while the bus is in the idle state (the bus is free). it is initiated by a high to low transition on the sda line while the scl is in the high state (a stop condition is indicated by a low to high tran sition on the sda line while the scl line is in the high state). h o s t p r o c e s s o r c o d e c s d a s c l p e r i p h e r a l d e v i c e s d a s c l s c l s d a v d d _ i o v d d _ i o
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 54 of 123 ? 2015 dialog semiconductor figure 23 : i2c start and stop c onditions the i2c bus is monitored by da7219 for a valid slave address whenever the interface is enabled. it responds with an acknowledge immediately when it receives its own slave address. the acknowledge is done by pulling the sda line low during the following clock cycle (white blocks marked with a in figure 24 to figure 28 ). the protocol for a register write from master to slave consists of a start condition, a slave address with read/write bit and the 8 - bit register address followed by 8 bits of data terminated by a stop condition (the da7219 responds to all bytes with acknowledge). this is illustrated in figure 24 . figure 24 : i2c b yte write (sda line) when the host reads data from a register it first has to write - access da7219 with the target register address and then read access da7219 with a repeated start, or alternatively a second start condition. after receiving the data the host sends a not acknowledge (nak) and terminates the transmission with a stop condition: figure 25 : examples of the i2c byte r ead (sda line) consecutive (page mode) read - out mode ( cif_i2c_write_mode = 0 ) is initiated from the master by sending an acknowledge instead of not acknowledge (nak) after receipt of the data word. the i2c control block then increments the address pointer to the next i2c address and sends the data to the master. this enables an un limited read of data bytes until the master sends a nak directly after the receipt of data, followed by a subsequent stop condition. if a non - existent i2c address is read out, the da7219 will return code zero. s c l s d a slave a d dr w reg a d dr a data a p s = start condition a = acknowledge ( low) p = stop condition w = write (low) master to slave slave to master 7 - bits 1 - bit 8 - bits 8 - bits a s s slavea d dr w a reg ad dr a slavead d r a s = start condition a = acknowledge ( low) sr = repeated start condition a * = no t a cknowledge (na k) p = stop condition w = write (low) r = read (high) master to slave 7 - bits 1 - bit 8 - bits 7 - bits data a * sr r 1 - bit 8 - bits slavead d r a 7 - bits data p s r 1 - bit 8 - bits p a * slave to master s slavea d dr w a reg ad d r p 7 - bits 1 - bit 8 - bits a
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 55 of 123 ? 2015 dialog semiconductor figure 26 : examples of i2c page r ead (sda line) the slave address after the repeated start condition must be the same as the previous slave address . consecutive write - mode ( cif_i2c_write_mode = 0) is supported if the master sends several data bytes following a slave register address. the i2c control block then increments the address pointer to the next i2c address, stores the received data and sends an acknowledge until the master sends the stop condition. figure 27 : i2c page write (sda l ine) an alternative repeated - write mode that uses non - consecutive slave register addresses is available using the cif_i2c_write_mode register. in this repeat mode ( cif_i2c_write_mode = 1), the slave can be configured to support a hosts repeated write operations into several non - consecutive registers. data is stored at the previously received register address. if a new start or stop condition occurs within a message, t he bus returns to idle mode. this is illustrated in figure 28 . figure 28 : i2c repeated write (sda l ine) in page mode ( cif_i2c_write_mode = 0), both page mode reads and writes using auto incremented addresses, and repeat mode reads and writes using non - auto - incremented addresses, are supported. in repeat mode ( cif_i2c_write_mode = 1) however, only repeat mode reads and writes are supported. s slavead d r w a reg ad d r a slavead d r a s = st art condition a = acknowledge (low) sr = repeat start condition a * = no t acknowledge (nak) p = stop condition w = write (low) r = read (high) master to slave slave to master 7 - bits 1 bit 8 - bits 7 - bits data a sr r 1 - bit 8 - bits s slavead d r w a reg ad d r a slavead d r a 7 - bits 1 - bit 8 - bits 7 - bits data p s r 1 - bit 8 - bits p a a * p data data a a * data 8 - bits 8 - bits 8 - bits s slavead d r w a regadr a data a s = start condition a = acknowledge (low) sr = repeat start condition a * = no t acknowledge (nak) p = stop condition w = write (low) r = read (high) master to slave slave to master 7 - bits 1 bit 8 - bits 8 - bits data a 1 - bit 8 - bits a p data . a 8 - bits repeated writes s slavead d r w a reg ad d r a data a s = start condition a = acknowledge (low) sr = repeat start condition a * = no t acknowledge (nak) p = stop condition w = write (low) r = read (high) master to slave slave to master 7 - bits 1 bit 8 - bits 8 - bits reg ad d r a 1 - bit 8 - bits a p data . a 8 - bits repeated writes
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 56 of 123 ? 2015 dialog semiconductor 9.9 digital audi o interface (dai) da7219 provides one digital audio interface (dai) to input dac data or to output adc data. it is enabled by asserting dai_en . the dsp provides flexible routing options allowing each interface to be connected to different signal paths as desired in each application. the dai consists of a four - wire serial interface, with bit clock (bclk), word clock (wclk), data - in (datin) and data - out (da tout) pins. both master and slave clock modes are supported by the da7219. master mode is enabled by setting register dai_clk_en = 1. in master mode, the bit clock and word clock signals are outputs from the codec. in slave mode these are inputs to the codec. figure 29 : master mode ( dai_clk_en = 1 ) figure 30 : slave mode ( dai_clk_en = 0 ) the internal serialised dai data is 24 bits wide. serial data that is not 24 bits wide is either shortened or zero - filled at input to, or at output from, the dais internal 24 - bit data width. the serial data word length can be configured to be 16, 20, 24 or 32 bits wide using the dai_word_length register bits. four different data formats are supported by the digital audio interface. the data format is determined by the setting of the dai_format register bits. i2 s mode left justified mode right justified mode dsp mode time division multiplexing (tdm) is available in any of these modes to support the case where multiple devices are communicating simultaneously on the same bus. tdm is enabled by asserting the dai_tdm_mode_en bit. d a 7 2 1 9 c o d e c p r o c e s s o r b c l k w c l k d a t i n d a t o u t d a 7 2 1 9 c o d e c p r o c e s s o r b c l k w c l k d a t i n d a t o u t
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 57 of 123 ? 2015 dialog semiconductor 9.9.1 dai c hannels the dai supports one to two channels, even in non - tdm modes. the number of channels required is specified by setting dai_ ch_num which contro ls the position of the channels. in tdm mode, each of the two channels can be individually enabled using the dai_tdm_ch_en register. 9.9.2 i2s m ode in i2s mode ( dai_format = 0), the msb of the left channel is valid on the second rising edge of the bit clock after the falling edge of the word clock. the msb of the right channel is valid on the second rising edge of the bit clock after the rising edge of the word clock. figure 31 : i2s m ode 9.9.3 left j ustifi ed m ode in left - justified mode ( dai_format = 1), the msb of the right channel is va lid on the rising edge of the bit clock following the falling edge of the word clock. the msb of the left channel is valid on the rising edge of the bit clock following the rising edge of the word clock. figure 32 : left justified m ode 9.9.4 right j ustifi ed m ode in right - justified mode ( dai_format = 2), the lsb of the left channel is valid on the rising edge of the bit clock preceding the falling edge of word clock . the lsb of the right channel is valid on the rising edge of the bit clock preceding the rising edge of the word clock. figure 33 : right justified m ode b c l k w c l k m s b r i g h t c h a n n e l l s b m s b l e f t c h a n n e l l s b d a t i n / d a t o u t m s b w c l k 1 = r i g h t c h a n n e l d a t a w c l k 0 = l e f t c h a n n e l d a t a b c l k w c l k m s b l e f t c h a n n e l l s b m s b r i g h t c h a n n e l l s b d a t i n / d a t o u t m s b w c l k 1 = l e f t c h a n n e l d a t a w c l k 0 = r i g h t c h a n n e l d a t a b c l k w c l k m s b l e f t c h a n n e l l s b m s b r i g h t c h a n n e l l s b d a t i n / d a t o u t l s b w c l k 1 = l e f t c h a n n e l d a t a w c l k 0 = r i g h t c h a n n e l d a t a
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 58 of 123 ? 2015 dialog semiconductor 9.9.5 dsp m ode in dsp mode ( dai_format = 3), the rising edge of the word clock starts the data transfer with the left channel data first and immediately followed by the right channel data. each data bit is valid on the falling edge of the bit clock. figure 3 4 : dsp m ode b c l k w c l k m s b l e f t c h a n n e l l s b m s b r i g h t c h a n n e l l s b d a t i n / d a t o u t m s b t h e f a l l i n g e d g e o f w c l k c a n o c c u r a n y w h e r e i n t h i s a r e a t h e f a l l i n g e d g e o f w c l k c a n o c c u r a n y w h e r e i n t h i s a r e a b c l k w c l k m s b l e f t c h a n n e l l s b m s b r i g h t c h a n n e l l s b d a t i n / d a t o u t m s b o f f s e t
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 59 of 123 ? 2015 dialog semiconductor 10 register maps and d efinitions table 42 : register map accdet_cad_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x000000c0 accdet_sta tus_a reserved micbias_up_ sts jack_pin_ord er_sts jack_type_sts jack_insertio n_sts 0x000000c1 accdet_sta tus_b button_type_sts 0x000000c2 accdet_irq _event_a reserved e_jack_detec t_complete e_jack_remo ved e_jack_insert ed 0x000000c3 accdet_irq _event_b e_button_a_r eleased e_button_b_r eleased e_button_c_r eleased e_button_d_r eleased e_button_d_ pressed e_button_c_p ressed e_button_b_ pressed e_button_a_ pressed 0x000000c4 accdet_irq _mask_a reserved m_jack_dete ct_complete m_jack_remo ved m_jack_inser ted 0x000000c5 accdet_irq _mask_b m_button_a_ released m_button_b_ released m_button_c_ released m_button_d_ released m_button_d_ pressed m_button_c_ pressed m_button_b_ pressed m_button_a_ pressed 0x000000c6 accdet_co nfig_1 pin_order_de t_en jack_type_de t_en mic_det_thresh button_config accdet_en 0x000000c7 accdet_co nfig_2 jackdet_rem_deb jack_detect_rate jackdet_debounce accdet_paus e 0x000000c8 accdet_co nfig_3 a_d_button_thresh 0x000000c9 accdet_co nfig_4 d_b_button_thresh 0x000000ca accdet_co nfig_5 b_c_button_thresh 0x000000cb accdet_co nfig_6 c_mic_button_thresh 0x000000cc accdet_co nfig_7 reserved jack_type_for ce pin_order_for ce adc_1_bit_repeat button_average 0x000000cd accdet_co nfig_8 reserved hptest_comp reserved hptest_res_sel hptest_en
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 60 of 123 ? 2015 dialog semiconductor table 43 : accdet_status_a (page 0: 0x000000c0) bit mode symbol description reset 3 r micbias_up_sts status of the microphone supply rail micbias 0 = micbias off 1 = micbias on micbias is enabled automatically when a four - pole jack is inserted 0x0 2 r jack_pin_order_sts status of the jack pin - order detection. pins are measured in tip - ring1 - ring2 - sleeve order. 0 = lrgm (ctia format) 1 = lrmg (omtp format) the data in this bit field is only valid after the e_jack_detect_complete event has fired, that is, once e_jack_detect_complete = 1 0x0 1 r jack_type_sts status of the jack - type detection. 0 = 3 - pole jack detecte d 1 = 4 - pole jack detected the data in this bit field is only valid after the e_jack_detect_complete event has fired, that is, once e_jack_detect_complete = 1 0x0 0 r jack_insertion_sts jack insertion status 0 = no jack i s present 1 = jack is present 0x0 table 44 : accdet_status_b (page 0: 0x000000c1) bit mode symbol description reset 7:0 r button_type_sts the last measured 8 - bit button impendance value from the adc. 0x0 table 45 : accdet_irq_event_a (page 0: 0x000000c2) bit mode symbol description reset 2 r e_jack_detect_compl ete jack detection irq event field. this is asserted once the jack detection has completed. this is a 'write 1 to clear' field. jack_type_sts and jack_pin_order_sts status bits are only valid after this event has been asserted. 0x0 1 r e_jack_removed jack removal irq event field. this is asserted when a jack is removed. this is a 'write 1 to clear' field. 0x0 0 r e_jack_inserted jack insertion irq event field. this is asserted when a jack is inserted. this is a 'write 1 to clear' field. 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 61 of 123 ? 2015 dialog semiconductor table 46 : accdet_irq_event_b (page 0: 0x000000c3) bit mode symbol description rese t 7 r e_button_a_released button a release irq event field. this is asserted when button a is released. this is a 'write 1 to clear' field. 0x0 6 r e_button_b_released button b release irq event field. this is asserted when button b is released. this is a 'write 1 to clear' field. 0x0 5 r e_button_c_released button c release irq event field. this is asserted when button c is released. thi s is a 'write 1 to clear' field. 0x0 4 r e_button_d_released button d release irq event field. this is asserted when button d is released. this is a 'write 1 to clear' field. 0x0 3 r e_butto n_d_pressed button a press irq event field. this is asserted when button a is pressed. this is a 'write 1 to clear' field. 0x0 2 r e_button_c_pressed button b press irq event field. this is asserted when button b is pressed. this is a 'write 1 to clear' field. 0x0 1 r e_button_b_pressed button c press irq event field. this is asserted when button c is pressed. this is a 'write 1 to clear' field. 0x0 0 r e_button_a_pressed button d press irq event field. this is asserted when button d is pressed. this is a 'write 1 to clear' field. 0x0 table 47 : accdet_irq_mask_a (page 0: 0x000000c4) bit mode symbol description reset 2 r/w m_jack_detect_comp lete interrupt mask for e_jack_detect_complete 0 = jack detection irq is not masked 1 = jack dete ction irq is masked 0x0 1 r/w m_jack_removed interrupt mask for e_jack_removed 0 = jack removal irq is not masked 1 = jack removal irq is masked 0x0 0 r/w m_jack_inserted interrupt mask for e_jack_inserted 0 = jack insertion irq is not masked 1 = jack insertion irq is masked 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 62 of 123 ? 2015 dialog semiconductor table 48 : accdet_irq_mask_b (page 0: 0x000000c5) bit mode symbol description reset 7 r/w m_button_a_release d interrupt mask for e_button_a_released 0 = button a release irq is not masked 1 = button a release irq is masked 0x0 6 r/w m_button_b_release d interrupt mask for e_button_b_released 0 = button b release irq is not masked 1 = button b release irq is masked 0x0 5 r/w m_button_c_release d interrupt mask for e_button_c_released 0 = button c release irq is not masked 1 = button c releas e irq is masked 0x0 4 r/w m_button_d_release d interrupt mask for e_button_d_released 0 = button d release irq is not masked 1 = button d release irq is masked 0x0 3 r/w m_button_d_pressed interrupt mask for e_button_a_pressed 0 = button a press irq is not masked 1 = button a press irq is masked 0x0 2 r/w m_button_c_pressed interrupt mask for e_button_b_pressed 0 = button b press irq is not masked 1 = butto n b press irq is masked 0x0 1 r/w m_button_b_pressed interrupt mask for e_button_c_pressed 0 = button c press irq is not masked 1 = button c press irq is masked 0x0 0 r/w m_button_a_pressed interrupt mask for e_button_d_pressed 0 = button d press irq is not masked 1 = button d press irq is masked 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 63 of 123 ? 2015 dialog semiconductor table 49 : accdet_config_1 (page 0: 0x000000c6) bit mode symbol description reset 7 r/w pin_order_det_en controls detection of the pin order on insertion of a 4 - pole jack 0 = pin order is determined by the setting of the pin_order_force register field when jack_type_sts = 4 - pole 1 = pin order detection ( lrgm / lrmg ) runs on insertion of a 4 - pole jack 0x1 6 r/w jack_type_det_en controls detection of the type of jack (3 - pole without a mic or 4 - pole with a mic) when a jack is inserted 0 = the type of jack (3 - pole or 4 - pole) is determined by the setting of the jack_type_force register field 1 = jack type detection runs on jack insertion to determine jack type (3 - pole with no mic, or 4 - pole with a mic) 0x1 5:4 r/w mic_ det_thresh impedance threshold for mic detection measurement. if sleeve to ring2 impedance is below the threshold specified here, jack_type_sts is set to 0 (3 - pole). if sleeve to ring2 impedance is above the threshold specified here, jack_type_sts is set t o 1 (4 - pole). 00 = 200 01 = 500 (default) 10 = 750 11 = 1000 0x1 3:1 r/w button_config specifies the time between the periodic button - press measurements when jack_type_sts = 1 (4 - pole). 000 = disabled 001 = 2 ms 0 10 = 5 ms 011 = 10 ms (default) 100 = 50 ms 101 = 100 ms 110 = 200 ms 111 = 500 ms 0x3 0 r/w accdet_en controls accessory detection 0 = accessory detection is disabled 1 = accessory detection is enabled the accdet analogu e components require master bias to be enabled before enabling the digital block 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 64 of 123 ? 2015 dialog semiconductor table 50 : accdet_config_2 (page 0: 0x000000c7) bit mode symbol description reset 7:6 r/w jackdet_rem_deb control of the jackdet deassertion debounce 00 = 1 ms (default) 01 = 5 ms 10 = 10 ms 11 = 20 ms 0x0 5:4 r/w jack_detect_rate controls the jack - detection latency time, that is, the time from assertion of e_jack_insertion to assertion of e_jack_detect_complete 3 - pole jack: 00 = 32 ms 01 = 64 ms 10 = 128 ms 11 = 256 ms (default) 4 - pole jack: 00 = 64 ms 01 = 128 ms 10 = 256 ms 11 = 512 ms (default) latency time is altered by chan ging the ramp rate of the micdet current during jack type and pin order detection. 0x3 3:1 r/w jackdet_debounce control of the jackdet assertion debounce 0 = 5 ms 1 = 10 ms 2 = 20 ms (default) 3 = 50 ms 4 = 100 ms 5 = 200 ms 6 = 500 ms 7 = 1 s 0x2 0 r/w accdet_pause pauses the periodic button checking within the accessory detection function. this allows you to reconfigure the button measurements or to change micbias or both. 0 = no effect 1 = pauses the periodic button checking within the accessory detection block the difference between pausing by asserting this register field and disabling the accessory detection function entirely (accdet_en = 0) is that pausing allows for dynamic reconfig uration of the button measurements. when paused, the da7219 chip will still respond to new removal or insertion events whereas when disabled, no insertion or removal events are detected. 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 65 of 123 ? 2015 dialog semiconductor table 51 : accdet_config_3 (page 0: 0x000000c8) bit mode symbol description reset 7:0 r/w a_d_button_thr esh sets the impedance threshold between button a and button d. if the measured impedance of a button - press is lower than the threshold value specified here, the button that was pressed is button a. the value of this register field is a calculated value. it is calculated as: 256 * required threshold in /(required threshold in + micbias resistanc e in ) example calculation: assuming that micbias resistance = 2200 and the required threshold = 89 , the bit value of this register field = 256 * 89/(89 + 2200) = 10 [or 0x0a]. so, in this example, setting this register field = 0x0a will give you a t hreshold value of 89 . 0xa table 52 : accdet_config_4 (page 0: 0x000000c9) bit mode symbol description reset 7:0 r/w d_b_button_thr esh sets the impedance threshold between button d and button b. if the measured impedance of a button - press is lower than the threshold value specified here, the button that was pressed is button d. the value of this register field is a calculated value. it is calculated as: 256 * requi red threshold in /(required threshold in + micbias resistance in ) example calculation: assuming that micbias resistance = 2200 and the required threshold = 195 , the bit value of this register field = 256 * 195/(195 + 2200) = 21 [or 0x15]. so, in this example, setting this register field = 0x15 will give you a threshold value of 195 . 0x16
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 66 of 123 ? 2015 dialog semiconductor table 53 : accdet_config_5 (page 0: 0x000000ca) bit mode symbol description reset 7:0 r/w b_c_button_thr esh sets the impedance threshold between button b and button c. if the measured impedance of a button - press is lower than the threshold value specified here, the button that was pressed is button b. the value of this register field is a calculated value. it is calculated as: 256 * required threshold in /(required threshold in + micbias resistance in ) example calculation: assuming that micbias resistance = 2200 and the required threshold = 325 , the bit va lue of this register field = 256 * 325/(325 + 2200) = 33 [or 0x21]. so, in this example, setting this register field = 0x21 will give you a threshold value of 325 . 0x21 table 54 : accdet_config_6 (page 0: 0x000000cb) bit mode symbol description reset 7:0 r/w c_mic_button_t hresh sets the impedance threshold between button c and the microphone. if the measured impedance of a button - press is lower than the threshold value specified here, the button that was pressed is button c. the value of this register field is a calculated value. it is calculated as: 256 * required threshold in /(required threshold in + micbias resistance in ) example calculatio n: assuming that micbias resistance = 2200 and the required threshold = 688 , the bit value of this register field = 256 * 688/(688 + 2200) = 61 [or 0x3d]. so, in this example, setting this register field = 0x3d will give you a threshold value of 688 . 0x3e
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 67 of 123 ? 2015 dialog semiconductor table 55 : accdet_config_7 (page 0: 0x000000cc) bit mode symbol description reset 5 r/w jack_type_force specifies the jack type when jack type detection is disabled (jack_type_det_en is 0) 0 = 3 - pole jack is specified 1 = 4 - pole jack is specified 0x0 4 r/w pin_order_force specifies the jack pin order for 4 - pole jacks when pin order detection is disabled (pin_order_det_en = 0) 0 = lrgm (ctia format) 1 = lrmg (omtp format) 0x0 3:2 r/w adc_1_bit_repeat sets the number of repeated 1 - bit measurements. repeating the 1 - bit measurements multiple times gives greater noise immunity but adds latency, an d possible distortion, during periodic button checking 00 = one 1 - bit measurement (default) 01 = two 1 - bit measurements 10 = four 1 - bit measurements 11 = eight 1 - bit measurements 0x0 1:0 r/w button_average sets the number of repeated 8 - bit adc measurements used to generate an averaged result using more measurements for averaging will increase button - checking noise immunity but also increases the detection latency by about 1 ms per measurement 00 = one 8 - bit measurement ( no averaging) 01 = two 8 - bit measurements used for averaging (default) 10 = four 8 - bit measurements used for averaging 11 = eight 8 - bit measurements used for averaging 0x1 table 56 : accdet_config_8 (page 0: 0x000000cd) bit mode symbol description reset 4 r hptest_comp hp test comparator result 1 = hp impedance is < threshold 0 = hp impedance is > threshold 0x0 2:1 r/w hptest_res_sel hp impedance test threshold control 00 - 1000 01 = 2500 10 = 5000 11 = 10000 0x1 0 r/w hptest_en headphone impedance test block control 0 = hp impedance test block disabled 1 = hp impedance test bloc k enabled 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 68 of 123 ? 2015 dialog semiconductor table 57 : register map adc_filters_cad_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x00000038 adc_filter s1 adc_hpf_en reserved adc_audio_hpf_corner adc_voice_e n adc_voice_hpf_corner table 58 : adc_filters1 (page 0: 0x00000038) bit mode symbol description reset 7 r/w adc_hpf_en adc high pass filter control 0 = adc high pass filter disabled 1 = adc high pass filter enabled 0x1 5:4 r/w adc_audio_hpf_corn er adc high pass filter 3 db cut - off point. at 48 khz, the cutoff point is at: 00 = 2 hz 01 = 4 hz 10 = 8 hz 11 = 16 hz for other sample rates the 3 db cuttoff point scales proportionately 0x0 3 r/w adc_voice_en adc voice filter control 0 = voice filter disabled 1 = voice filter enabled 0x0 2:0 r/w adc_voice_hpf_corn er voice (8 khz) high pass 3 db cutoff point 000 = 2.5 hz 001 = 25 hz 010 = 50 hz 011 = 100 hz 100 = 150 hz 101 = 200 hz 110 = 300 hz 111 = 4 00 hz for other sample rates the 3 db cuttoff point scales proportionately 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 69 of 123 ? 2015 dialog semiconductor table 59 : register map alc_cad_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x0000002f alc_ctrl1 reserved alc_calib_ove rflow alc_auto_cali b_en alc_en reserved alc_sync_mo de alc_offset_en 0x0000009a alc_ctrl2 alc_release alc_attack 0x0000009b alc_ctrl3 alc_integ_release alc_integ_attack alc_hold 0x0000009c alc_noise reserved alc_noise 0x0000009d alc_target _min reserved alc_threshold_min 0x0000009e alc_target _max reserved alc_threshold_max 0x0000009f alc_gain_li mits alc_gain_max alc_atten_max 0x000000a0 alc_ana_ga in_limits reserved alc_ana_gain_max reserved alc_ana_gain_min 0x000000a1 alc_anticli p_ctrl alc_antipclip_ en reserved alc_anticlip_step 0x000000a2 alc_anticli p_level reserved alc_anticlip_level 0x000000a3 alc_offset _auto_m_l alc_offset_auto_m_l 0x000000a4 alc_offset _auto_u_l reserved alc_offset_auto_u_l
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 70 of 123 ? 2015 dialog semiconductor table 60 : alc_ctrl1 (page 0: 0x0000002f) bit mode symbol description reset 5 r alc_calib_overflow indicates that an offset overflow occurred during calibration 0 = no offset overflow 1 = offset overflow occurred 0x0 4 r/w alc_auto_calib_en automatic calibration control 0 = automatic calibration not enabled 1 = automatic calibration enabled this is a self - clearing bit 0x0 3 r/w alc_en controls the alc operation on the left adc channel 0 = alc is disabled 1 = alc is enabled 0x0 1 r/w alc_sync_mode alc hybrid mode contr ol. hybrid mode uses both analogue and digital gains. 0 = hybrid mode is off (digital gain only) 1 = hybrid mode is on (digital and analogue gain) 0x0 0 r/w alc_offset_en dc offset cancellation control 0 = dc offset cance llation is disabled 1 = dc offset cancellation is enabled 0x0 table 61 : alc_ctrl2 (page 0: 0x0000009a) bit mode symbol description reset 7:4 r/w alc_release sets the alc release rate. this is the speed at which the alc increases the gain. 0000 = 28.66/fs (0.6 ms/db @48 khz) 0001 = 57.33/fs (1.2 ms/db @48 khz) 0010 = 114.66/fs (2.4 ms/db @48 khz) then doubling at every step to... 1001 = 14674/fs (306 ms/db @48 kh z) 1010 to 1111 = 29348/fs (611 ms/db @48 khz) 0x0 3:0 r/w alc_attack alc attack rate control. this is the speed at which the alc reduces the gain. 0000 = 7.33/fs (0.153 ms/db @48 khz) 0001 = 14.66/fs (0.305 ms/db @48 khz) 0010 = 29.32/fs (0.612 ms/db @48 khz) then doubling at every step to... 1011 = 15012/fs (312 ms/db @48 khz) 1100 to 1111 = 30024/fs (625 ms/db @48 khz) 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 71 of 123 ? 2015 dialog semiconductor table 62 : alc_ctrl3 (page 0: 0x00000 09b) bit mode symbol description reset 7:6 r/w alc_integ_release controls the rate at which the input signal envelope is tracked as the signal gets smaller 00 = 1/4 01 = 1/16 10 = 1/256 11 = 1/65537 0x0 5:4 r/w alc_integ_attack comtrols the rate at which the input signal envelope is tracked as the signal gets larger 00 = 1/4 01 = 1/16 10 = 1/256 11 = 1/65537 0x0 3:0 r/w alc_hold alc hold time control. this is the period the alc waits before releasing. 0000 = 62/fs (1.3 ms @48 khz) 0001 = 124/fs (2.6 ms @48 khz) 0010 = 248/fs (5.2 ms @48 khz) then doubling at every step to 1110 = 1015808/fs (21 s @48 khz) 1111 = 2031616/fs (42 s @48 khz) 0x0 t able 63 : alc_noise (page 0: 0x0000009c) bit mode symbol description reset 5:0 r/w alc_noise sets the threshold below which input signals will not cause the alc to change gain 000000 = 0 dbfs 000001 = - 1.5 dbfs 000010 = - 3.0 dbfs then continuing in - 1.5 dbfs steps to 111110 = - 93.0 dbfs 111111 = - 94.5 dbfs (default) 0x3f
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 72 of 123 ? 2015 dialog semiconductor table 64 : alc_target_min (page 0: 0x0000009d) bit mode symbol description reset 5:0 r/w alc_threshold_min sets the minimum amplitude of the alc output signal at which the alc increases the gain. if the minimum attenution level is reached, the alc w ill not increase the gain even if this threshold is breached. 000000 = 0 dbfs 000001 = - 1.5 dbfs 000010 = - 3.0 dbfs then continuing in - 1.5 dbfs steps to... 111110 = - 93.0 dbfs 111111 = - 94.5 dbfs (default) 0x3f table 65 : alc_target_max (page 0: 0x0000009e) bit mode symbol description reset 5:0 r/w alc_threshold_max sets the maximum amplitude of the alc output signal at which the alc reduces the gain. if the maximum attenution level is reached, the alc will not reduce the gain even if this threshold is exceeded. 000000 = 0 dbfs 000001 = - 1.5 dbfs 000010 = - 3.0 dbfs then continuing in - 1.5 dbfs steps to... 111110 = - 93.0 dbfs 111111 = - 94.5 dbfs 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 73 of 123 ? 2015 dialog semiconductor table 66 : alc_gain_limits (page 0: 0x0000009f) bit mode symbol description reset 7:4 r/w alc_gain_max sets the maximum amount of gain that can be applied to the input si gnal by the alc when the input signal is large relative to the maximum threshold 0000 = 0 db 0001 = 6 db 0010 = 12 db then continuing in 6 db steps to 1110 = 84 db 1111 = 90 db 0xf 3:0 r/w alc_atten_max sets the maximum amount of attenuation that can be applied to the input signal by the alc when the input signal is large relative to the maximum threshold 0000 = 0 db 0001 = 6 db 0010 = 12 db then continuing in 6 db steps to 1110 = 84 db 1111 = 90 db 0xf
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 74 of 123 ? 2015 dialog semiconductor table 67 : alc_ana_gain_limits (page 0: 0x000000a0) bit mode symbol description reset 6:4 r/w alc_ana_gain_max sets the maximum amount of analogue gain that can be applied to the input signal by the alc when the input signal is large relative to the maximum threshold. this setting applies only to mixed analogue and digital gain mode (alc_sync_mode = 1). 000 = reserved 001 = 0 db 010 = 6 db 011 = 12 db 100 = 18 db 101 = 24 db 1 10 = 30 db 111 = 36 db 0x7 2:0 r/w alc_ana_gain_min sets the minimum amount of analogue gain that can be applied to the input signal by the alc when the input signal is large relative to the maximum threshold. this setting applies only to mixed analogue and digital gain mode (alc_sync_mode = 1). 000 = reserved 001 = 0 db 010 = 6 db 011 = 12 db 100 = 18 db 101 = 24 db 110 = 30 db 111 = 36 db 0x1 table 68 : alc_antic lip_ctrl (page 0: 0x000000a1) bit mode symbol description reset 7 r/w alc_antipclip_en controls the alc signal clip prevention mechanism 0 = clip prevention is disabled 1 = clip prevention is enabled 0x0 1:0 r/w alc_anticlip_step sets the attack rate for the alc when the output signal exceeds the anticlip threshold level 00 = 0.034 db/fs 01 = 0.068 db/fs 10 = 0.136 db/fs 11 = 0.272 db/fs 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 75 of 123 ? 2015 dialog semiconductor table 69 : alc_anticlip_level (page 0: 0x000000a2) bit mode symbol description reset 6:0 r/w alc_anticlip_level alc anticlip threshold control. the alc anticlip operates when signals are above this threshold. the formula used to calculate the threshold value, using 'x' to denote the decimal value of this bit field, is: x = ((x+1)/128) fs 0x00 = 0.0078 fs 0x01 = 0.0156 fs 0x02 = 0.0234 fs then contnuing in aproximately 0.0078 steps to... 0x7 e = 0.9922 fs 0x7f = 1.0 fs 0x0 table 70 : alc_offset_auto_m_l (page 0: 0x000000a3) bit mode symbol description reset 7:0 r alc_offset_auto_m_l this read - only bit field contains the middle eight bits (bits [15:8]) of the value used for automatic offset correction 0x0 table 71 : alc_offset_auto_u_l (page 0: 0x000000a4) bit mode symbol description reset 3:0 r alc_offset_auto_u_l this read - only bit field contains the upper four bits (bits [19:16]) of the value used for automatic offset correction 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 76 of 123 ? 2015 dialog semiconductor table 72 : register map analogue_cad_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x00000006 mic_1_gain_ status reserved mic_1_amp_gain_status 0x00000008 mixin_l_gai n_status reserved mixin_l_amp_gain_status 0x0000000a adc_l_gain _status reserved adc_l_digital_gain_status 0x0000000c dac_l_gain _status reserved dac_l_digital_gain_status 0x0000000d dac_r_gain _status reserved dac_r_digital_gain_status 0x0000000e hp_l_gain_ status reserved hp_l_amp_gain_status 0x0000000f hp_r_gain_ status reserved hp_r_amp_gain_status 0x00000010 mic_1_sele ct reserved mic_1_amp_in_sel 0x00000032 reference s reserved vmid_fast_ch arge bias_en reserved 0x00000033 mixin_l_sel ect reserved mixin_l_mix_ select 0x00000034 mixin_l_gai n reserved mixin_l_amp_gain 0x00000036 adc_l_gain reserved adc_l_digital_gain 0x00000039 mic_1_gain reserved mic_1_amp_gain 0x00000045 dac_l_gain reserved dac_l_digital_gain 0x00000046 dac_r_gain reserved dac_r_digital_gain 0x00000048 hp_l_gain reserved hp_l_amp_gain 0x00000049 hp_r_gain reserved hp_r_amp_gain 0x0000004b mixout_l_s elect reserved mixout_l_mix _select
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 77 of 123 ? 2015 dialog semiconductor address name # 7 6 5 4 3 2 1 0 register page 0 0x0000004c mixout_r_s elect reserved mixout_r_mix _select 0x00000062 micbias_ct rl reserved micbias1_en micbias1_level 0x00000063 mic_1_ctrl mic_1_amp_ en mic_1_amp_ mute_en mic_1_amp_r amp_en reserved 0x00000065 mixin_l_ctr l mixin_l_amp _en mixin_l_amp _mute_en mixin_l_amp _ramp_en mixin_l_amp _zc_en mixin_l_mix_ en reserved 0x00000067 adc_l_ctrl adc_l_en adc_l_mute_ en adc_l_ramp_ en reserved 0x00000069 dac_l_ctrl dac_l_en dac_l_mute_ en dac_l_ramp_ en reserved 0x0000006a dac_r_ctrl dac_r_en dac_r_mute_ en dac_r_ramp_ en reserved 0x0000006b hp_l_ctrl hp_l_amp_en hp_l_amp_m ute_en hp_l_amp_ra mp_en hp_l_amp_zc _en hp_l_amp_oe hp_l_amp_mi n_gain_en reserved 0x0000006c hp_r_ctrl hp_r_amp_e n hp_r_amp_m ute_en hp_r_amp_ra mp_en hp_r_amp_zc _en hp_r_amp_o e hp_r_amp_m in_gain_en reserved 0x0000006e mixout_l_c trl mixout_l_am p_en reserved 0x0000006f mixout_r_c trl mixout_r_am p_en reserved 0x00000091 io_ctrl reserved io_voltage_le vel table 73 : mic_1_gain_status (page 0: 0x00000006) bit mode symbol description reset 2:0 r mic_1_amp_gain_st atus contains the currently active mic_1_amp gain setting 000 = - 6 db 001 = 0 db 010 = 6 db 011 = 12 db 100 = 18 db 101 = 24 db 110 = 30 db 111 = 36 db 0x1
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 78 of 123 ? 2015 dialog semiconductor table 74 : mixin_l_gain_status (page 0: 0x00000008) bit mode symbol description reset 3:0 r mixin_l_amp_gain_st atus contains the currently active mixin_l_amp gain setting 0000 = - 4.5 db 0001 = - 3.0 db 0010 = - 1.5 db 0011 = 0.0 db then continuing in 1.5 db steps to 1110 = 16.5 db 1111 = 18.0 db 0x0 table 75 : adc_l_gain_status (page 0: 0x0000000a) bit mode symbol description reset 6:0 r adc_l_digital_gain_st atus contains the currently active adc_l digital gain setting 0x00 = - 83.25 db 0x01 = - 82.5 db then continuing in 0.75 db steps through 0x6f = 0 db to... 0x7e = 11.25 db 0x7f = 12 db 0x0 table 76 : dac_l_gain_status (page 0: 0x0000000c) bit mode symbol description reset 6:0 r dac_l_digital_gain_st atus contains the currently active dac_l digital gain setting 0x00 to 0x07 = mute 0x08 = - 77.25 db 0x09 = - 76.5 db then continuing in 0.75 db steps through 0x6f = 0 db to... 0x7e = 11.25 db 0x7f = 12 db 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 79 of 123 ? 2015 dialog semiconductor table 77 : dac_r_gain_status (page 0: 0x0000000d) bit mode symbol description reset 6:0 r dac_r_digital_gain_st atus contains the currently active dac_r digital gain setting 0x00 to 0x07 = mute 0x08 = - 77.25 db 0x09 = - 76.5 db then continuing in 0.75 db steps through 0x6f = 0 db to... 0x7e = 11.25 db 0x7f = 12 db 0x0 table 78 : hp_l_gain_status (page 0: 0x0000000e) bit mode symbol description reset 5:0 r hp_l_amp_gain_stat us contains the currently active hp_l_amp gain setting 000000 = - 57.0 db 000001 = - 56.0 db 000010 = - 55.0 db then continuing in 1 db steps to 111001 = 0.0 db 111111 = 6.0 db 0x0 table 79 : hp_r_gain_status (page 0: 0x0000000f) bit mode symbol description reset 5:0 r hp_r_amp_gain_stat us contains the currently active hp_r_amp gain setting 000000 = - 57.0 db 000001 = - 56.0 db 000010 = - 55.0 db then continuing in 1 db steps to 111001 = 0.0 db 111111 = 6.0 db 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 80 of 123 ? 2015 dialog semiconductor table 80 : mic_1_select (page 0: 0x00000010) bit mode symbol description reset 1:0 r/w mic_1_amp_in_sel mic_1 input source control 00 = differential 01 = mic_1_p single - ended 10 = mic_1_n single - ended 11 = reserved 0x0 table 81 : references (page 0: 0x00000032) bit mode symbol description reset 4 r/w vmid_fast_charge vmid reference fast charge control 0 = low noise, slow charge mode 1 = high noise, fast charge mode 0x0 3 r/w bias_en master bias control. master bias is required for analogue circuitry. 0 = master bias disabled 1 = master bias enabled 0x1 table 82 : mixin_l_select (page 0: 0x00000033) bit mode symbol description reset 0 r/w mixin_l_mix_select mixin_l mixer input control 0 = no input selected 1 = mic_1 selected as input 0x0 table 83 : mixin_l_gain (page 0: 0x00000034) bit mode symbol description reset 3:0 r/w mixin_l_amp_gain mixin_l_amp gain control 0000 = - 4.5 db 0001 = - 3.0 db 0010 = - 1.5 db 0 011 = 0.0 db then continuing in 1.5 db steps to 1110 = 16.5 db 1111 = 18.0 db 0x3
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 81 of 123 ? 2015 dialog semiconductor table 84 : adc_l_gain (page 0: 0x00000036) bit mode symbol description reset 6:0 r/w adc_l_digital_gain adc_l digital gain control 00x0 = - 83.25 db 0x01 = - 82.5 db then continuing in 0.75 db steps through 0x6f = 0 db to... 0x7e = 11.25 db 0x7f = 12 db 0x6f table 85 : mic_1_gain (page 0: 0x00000039) bit mode symbol description reset 2:0 r/w mic_1_amp_gain mic_1_amp gain control 000 = - 6 db 001 = 0 db 010 = 6 db 011 = 12 db 100 = 18 db 101 = 24 db 110 = 30 db 111 = 36 db 0x1 table 86 : dac_l_gain (page 0: 0x00000045) bit mode symbol description reset 6:0 r/w dac_l_digital_gain dac_l digital gain control 0x00 to 0x07 = mute 0x08 = - 77.25 db 0x09 = - 76.5 db then continuing in 0.75 db steps through 0x6f = 0 db to... 0x7e = 11.25 db 0x7f = 12 db 0x6f
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 82 of 123 ? 2015 dialog semiconductor table 87 : dac_r_gain (page 0: 0x00000046) bit mode symbol description reset 6:0 r/w dac_r_digital_gain dac_r digital gain control 0x00 to 0x07 = mute 0x08 = - 77.25 db 0x09 = - 76.5 db then continuing in 0.75 db steps through 0x6f = 0 db to... 0x7e = 11.25 db 0x7f = 12 db 0x6f table 88 : hp_l_gain (page 0: 0x00000048) bit mode symbol description reset 5:0 r/w hp_l_amp_gain hp_l_amp gain control 000000 = - 57.0 db 000001 = - 56.0 db 000010 = - 55.0 db then continuing in 1 db steps through 111001 = 0.0 db to 111111 = 6.0 db 0x39 table 89 : hp_r_gain (page 0: 0x00000049) bit mode symbol description reset 5:0 r/w hp_r_amp_gain hp_r_amp gain control 000000 = - 57.0 db 000001 = - 56.0 db 000010 = - 55.0 db then continuing in 1 db steps through 111001 = 0.0 db to 111111 = 6.0 db 0x39 table 90 : mixout_l_select (page 0: 0x0000004b) bit mode symbol description reset 0 r/w mixout_l_mix_select output left mixer channel selection 0 = no channel selected 1 = dac_l selected as output 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 83 of 123 ? 2015 dialog semiconductor table 91 : mixout_r_select (page 0: 0x0000004c) bit mode symbol description reset 0 r/w mixout_r_mix_select ouput right mixer channel selection 0 = no channel selected 1 = dac_r selected as output 0x0 table 92 : micbias_ctrl (page 0: 0x00000062) bit mode symbol description reset 3 r/w micbias1_en microphone bias 1 control 0 = micbias1 disabled 1 = micbias1 enabled 0x0 2:0 r/w micbias1_level microphone bias 1 level control 000 = 1.6 v 001 = 1.8 v 010 = 2.0 v 011 = 2.2 v 100 = 2.4 v 101 = 2.6 v 110 = 2.8 v 111 = 2.9 v this must only be modified while micbias_1 is disabled (micbias1_en = 0) 0x3 table 93 : mic_1_ctrl (page 0: 0x00000063) bit mode symbol description reset 7 r/w mic_1_amp_en mic_1 amplifier control 0 = mic_1 disabled 1 = mic_1 enabled 0x0 6 r/w mic_1_amp_mute_e n mic_1 amplifier mute control 0 = mic_1 unmuted 1 = mic_1 muted 0x1 5 - mic_1_amp_ramp_e n mic_1 amplifier gain ramping control 0 = gain changes are instant 1 = gain changes are ramped to the new level 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 84 of 123 ? 2015 dialog semiconductor table 94 : mixin_l_ctrl (page 0: 0x00000065) bit mode symbol description reset 7 r/w mixin_l_amp_en mixin_l amplifier control 0 = mixin_l disabled 1 = mixin_l enabled 0x0 6 r/w mixin_l_amp_mute_ en mixin_l amplifier mute control 0 = mixin_l unmuted 1 = mixin_l muted 0x1 5 r/w mixin_l_amp_ramp_ en mixin_l amplifier gain ramping control 0 = gain changes are instant 1 = gain changes are ramped to the new level this setting overrides zero crossing 0x0 4 r/w mixin_l_a mp_zc_en mixin_l amplifier zero cross control 0 = gain changes are instant 1 = gain changes are performed when the signal crosses zero if no zero - crossing is detected within the timeout period of approximately 100 ms, the update is applied unconditionall y 0x0 3 r/w mixin_l_mix_en mixin_l mixer control. when this mixer is disabled, all inputs are deselected. 0 = mixer disabled 1 = mixer enabled 0x0 table 95 : adc_l_ctrl (page 0: 0x00000067) bit mode symbol description reset 7 r/w adc_l_en adc_l control 0 = adc_l disabled 1 = adc_l enabled 0x0 6 r/w adc_l_mute_en adc_l mute control 0 = adc_l unmuted 1 = adc_l muted 0x1 5 r/w adc_l_ramp_en adc_l digital gain ramping control 0 = gain changes are instant 1 = gain changes are ramped to the new level 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 85 of 123 ? 2015 dialog semiconductor table 96 : dac_l_ctrl (page 0: 0x00000069) bit mode symbol description reset 7 r/w dac_l_en dac_l control 0 = dac_l disabled 1 = dac_l enabled 0x0 6 r/w dac_l_mute_en dac_l mute control 0 = dac_l unmuted 1 = dac_l muted 0x1 5 r/w dac_l_ramp_en dac_l digital gain ramping control 0 = gain changes are instant 1 = gain changes are ramped to the new level 0x0 table 97 : dac_r_ctrl (page 0: 0x0000006a) bit mode symbol description reset 7 r/w dac_r_en dac_r control 0 = dac_r disabled 1 = dac_r enabled 0x0 6 r/w dac_r_mute_en dac_r mute control 0 = dac_r unmuted 1 = dac_r muted 0x1 5 r/w dac_r_ramp_en dac_r digital gain ramping control 0 = gain changes are instant 1 = gain changes are ramped to the new level 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 86 of 123 ? 2015 dialog semiconductor table 98 : hp_l_ctrl (page 0: 0x0000006b) bit mode symbol description reset 7 r/w hp_l_amp_en hp_l_amp amplifier control 0 = hp_l_amp disabled 1 = hp_l_amp enabled 0x0 6 r/w hp_l_amp_mute_en hp_l_amp amplifier mute control 0 = hp_l_amp unmuted 1 = hp_l_amp muted 0x1 5 r/w hp_l_amp_ramp_en hp_l_amp amplifier gain ramping control 0 = gain changes are instant 1 = gain changes are ramped to the n ew level this setting overrides zero crossing 0x0 4 r/w hp_l_amp_zc_en hp_l_amp amplifier zero cross control 0 = gain changes are instant 1 = gain changes are performed when the signal crosses zero if no zero - crossing is detected within the timeout period of approximately 100 ms, the update is applied unconditionally 0x0 3 r/w hp_l_amp_oe hp_l_amp amplifier output control 0 = output is high - impedance 1 = output is driven 0x0 2 r/w hp_l_amp_min_gain _en hp_l_amp amplifier minimum gain control. 0 = normal gain operation 1 = minimum gain only. hp_l amplifier is held at minimum gain regardless of other gain settings 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 87 of 123 ? 2015 dialog semiconductor table 99 : hp_r_ctrl (page 0: 0x0000006c) bit mode symbol description reset 7 r/w hp_r_amp_en hp_r_amp amplifier control 0 = hp_r_amp disabled 1 = hp_r_amp enabled 0x0 6 r/w hp_r_amp_mute_en hp_r_amp amplifier mute control 0 = hp_r_amp unmuted 1 = hp_r_amp muted 0x1 5 r/w hp_r_amp_ramp_en hp_r_amp amplifier gain ramping control 0 = gain changes are instant 1 = gai n changes are ramped to the new level this setting overrides zero crossing 0x0 4 r/w hp_r_amp_zc_en hp_r_amp amplifier zero cross control 0 = gain changes are instant 1 = gain changes are performed when the signal crosses zero if no zero - crossing is detected within the timeout period of approximately 100 ms, the update is applied unconditionally 0x0 3 r/w hp_r_amp_oe hp_r_amp amplifier output control 0 = output is high - impedance 1 = output is driven 0x0 2 r/w hp_r_amp_min_gain _en hp_r_amp amplifier minimum gain control. 0 = normal gain operation 1 = minimum gain only. hp_r_amp is held at minimum gain regardless of other gain settings 0x0 tab le 100 : mixout_l_ctrl (page 0: 0x0000006e) bit mode symbol description reset 7 r/w mixout_l_amp_en mixin_l amplifier control 0 = mixer disabled 1 = mixer enabled 0x0 table 101 : mixout_r_ctrl (page 0: 0x0000006f) bit mode symbol description reset 7 r/w mixout_r_amp_en mixin_r amplifier control 0 = mixer disabled 1 = mixer enabled 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 88 of 123 ? 2015 dialog semiconductor table 102 : io_ctrl (page 0: 0x00000091) bit mode symbol description reset 0 r/w io_voltage_level digital i/o voltage range control 0 = 2.5 to 3.6 v 1 = 1.2 to 2.8 v 0x0 table 103 : register map charge_pump_cad_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x00000047 cp_ctrl cp_en reserved cp_mchange reserved 0x00000095 cp_vol_thr eshold1 reserved cp_thresh_vdd2 table 104 : cp_ctrl (page 0: 0x00000047) bit mode symbol description reset 7 r/w cp_en chargepump control 0 = chargepump disabled 1 = chargepump enabled 0x0 5:4 r/w cp_mchange charge pump tracking mode control 00 = reserved 01 = voltage level is controlled by the largest output volume level 10 = voltage level is controlled by the dac volume level 11 = voltage level is controlled by the signal magnitude 0x2 table 105 : cp_vol_threshold1 (page 0: 0x00000095) bit mode symbol description reset 5:0 r/w cp_thresh_vdd2 threshold at and below which the charge pump can use the cpvdd/2 rail. this setting is only effective when cp_mchange = 10 or cp_mchange = 11. it is ignored for cp_mchange settings of 00 and 01 0xe
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 89 of 123 ? 2015 dialog semiconductor table 106 : register map cif_i2c_addr_cad_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x0000001b cif_i2c_add r_cfg reserved cif_i2c_addr_cfg table 107 : cif_i2c_addr_cfg (page 0: 0x0000001b) bit mode symbol description reset 1:0 r/w cif_i2c_addr_cfg i2c address [1:0] configuration this allows multiple da7219 devices to reside on the same bus by allowing the least significant two bits to be written to a specific value. the i2c clock must be externally controlled while writing this register to ensure that only the target da7219 device 's i2c address is modified. 0x2 table 108 : register map common1_cad_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x00000012 cif_timeout _ctrl reserved i2c_timeout_ en 0x00000013 cif_ctrl cif_reg_soft_r eset reserved cif_i2c_write_ mode 0x00000016 sr_24_48 reserved sr_24_48 0x00000017 sr reserved sr 0x00000092 gain_ramp_ ctrl reserved gain_ramp_rate 0x00000094 pc_count reserved pc_resync_a uto pc_freerun
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 90 of 123 ? 2015 dialog semiconductor table 109 : cif_timeout_ctrl (page 0: 0x00000012) bit mode symbol description reset 0 r/w i2c_timeout_en i2c (2 - wire) timeout control. the timeout period is approximately 43.9 ms. 0 = timeout disabled 1 = timeout enabled 0x0 table 110 : cif_ctrl (page 0: 0x00000013) bit mode symbol description reset 7 r/w cif_reg_soft_reset software reset which returns all the registers back to their default values. writing to this bit causes al l the registers to reset. 0 = no reset 1 = reset all registers to their default values 0x0 0 r/w cif_i2c_write_mode i2c (2 - wire) interface write mode control 0 = page mode. the register address is autoincremented after the first write. 1 = repeat mode. the register address and data are sent for each write. 0x0 table 111 : sr_24_48 (page 0: 0x00000016) bit mode symbol description reset 0 r/w sr_24_48 24_48_mode control. setting this bit runs the adc and the dac paths at different speeds. 0 = the adc path and the dac path both run at the same speed. this speed is determined by the setting of the sr bit in this regi ster 1 = the adc path runs at 24 khz, and the dac path and the rest of the system run at 48 khz to use this mode, the system sample rate sr must be set to 48 khz. therefore the i2s will also run at 48 khz and the 24 khz adc output will be double sampled. 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 91 of 123 ? 2015 dialog semiconductor table 112 : sr (page 0: 0x00000017) bit mode symbol description reset 3:0 r/w sr sample rate control: 0001 = 8.000 khz 0010 = 11.025 khz 0011 = 12.000 khz 0101 = 16.000 khz 0110 = 22.050 khz 0111 = 24.000 khz 1001 = 32.000 khz 1010 = 44.100 khz 1011 = 48.000 khz 1110 = 88.200 khz 1111 = 96.000 khz 0xa table 113 : gain_ramp_ctrl (page 0: 0x00000092) bit mode symbol description reset 1:0 r/w gain_ramp_rate controls the speed of the gain ramping when ramping is activated 0 = nominal rate * 8 1 = nominal rate 2 = nominal rate / 8 3 = nominal rate / 16 (slowest) the nominal rate (excluding headphone circuits) = 0.88 ms/db. the nominal rate for the headphone circuits is = 1.3 ms/db. 0x0 table 114 : pc_count (page 0: 0x00000094) bit mode symbol description reset 1 r/w pc_resync_auto program counter resynchronisation control 0 = no resynchronisation. if the dai drifts with respect to the system clocks, either a sample is skipped or it is double - sampled 1 = automatic resynchron isation if the dai drifts with respect to the system clock 0x1 0 r/w pc_freerun controls the filter operation when the dai is not enabled or when no dai clocks are available on the adc to dac processing path 0 = filters are synchronised to the dai 1 = filters are free running 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 92 of 123 ? 2015 dialog semiconductor table 115 : register map common2_cad_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x00000081 chip_id1 chip_id1 0x00000082 chip_id2 chip_id2 0x00000083 chip_revisi on chip_major chip_minor table 116 : chip_id1 (page 0: 0x00000081) bit mode symbol description reset 7:0 r chip_id1 first two digits of the four - digit chip id the last two numbers of the chip id are held in chip_id2 0x23 table 117 : chip_id2 (page 0: 0x00000082) bit mode symbol description reset 7:0 r chip_id2 last two digits of the four - digit chip id the first two numbers of the chip id are held in chip_id1 0x93 table 118 : chip_revision (page 0: 0x00000083) bit mode symbol description reset 7:4 r chip_major chip major revision 0x0 3:0 r chip_minor chip minor revision 0x1
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 93 of 123 ? 2015 dialog semiconductor table 119 : register map dac_filters_cad_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x00000040 dac_filter s5 dac_softmute _en dac_softmute_rate reserved 0x00000041 dac_filter s2 dac_eq_band2 dac_eq_band1 0x00000042 dac_filter s3 dac_eq_band4 dac_eq_band3 0x00000043 dac_filter s4 dac_eq_en reserved dac_eq_band5 0x00000044 dac_filter s1 dac_hpf_en reserved dac_audio_hpf_corner dac_voice_e n dac_voice_hpf_corner table 120 : dac_filters5 (page 0: 0x00000040) bit mode symbol description reset 7 r/w dac_softmute_en dac softmute control. when this bit is set, both channels are soft - muted. 0 = soft - mute disabled 1 = soft - mute enabled 0x0 6:4 r/w dac_softmute_rate softmute gain update control 000 = 1 sample per 0.1875 db 001 = 2 samples per 0.1875 db 010 = 4 samples per 0.1875 db 011 = 8 samples per 0.1875 db 100 = 16 samples per 0.1875 db 101 = 32 samples per 0.1875 db 110 = 64 samples per 0.1875 db 111 = reserved 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 94 of 123 ? 2015 dialog semiconductor table 121 : dac_filters2 (page 0: 0x00000041) bit mode symbol description reset 7:4 r/w dac_eq_band2 gain control of band 2 in the 5 - band eq 0000 = - 10.5 db 0001 = - 9.0 db 0010 = - 7.5 db continuing in 1.5 db steps through 0111 = 0 db to 1110 = 10.5 db 1111 = 12 db 0x8 3:0 r/w dac_eq_band1 gain control of band 1 in the 5 - band eq 0000 = - 10.5 db 0001 = - 9.0 db 0010 = - 7.5 db continuing in 1.5 db steps through 0111 = 0 db to 1110 = 10.5 db 1111 = 12 db 0x8 table 122 : dac_filters3 (page 0: 0x00000042) bit mode symbol description reset 7:4 r/w dac_eq_band4 gain control of band 4 in the 5 - band eq 0000 = - 10.5 db in 1.5 db steps 0001 = - 9.0 db 0010 = - 7.5 db continuing in 1.5 db steps through 0111 = 0 db to 1110 = 10.5 db 1111 = 12 db 0x8 3:0 r/w dac_eq_band3 gain control of band 3 in the 5 - band eq 0000 = - 10.5 db 0001 = - 9.0 db 0010 = - 7.5 db continuing in 1.5 db steps through 0111 = 0 db to 1110 = 10.5 db 1111 = 12 db 0x8
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 95 of 123 ? 2015 dialog semiconductor table 123 : dac_filters4 (page 0: 0x00000043) bit mode symbol description reset 7 r/w dac_eq_en dac 5 - band eq control 0 = equaliser disabled 1 = equaliser enabled 0x0 3:0 r/w dac_eq_band5 gain control of band 5 in the 5 - band eq 0000 = - 10.5 db 0001 = - 9.0 db 0010 = - 7.5 db continuing in 1.5 db steps through 0111 = 0 db to 1110 = 10.5 db 1111 = 12 db 0x8 table 124 : dac_filters1 (page 0: 0x00000044) bit mode symbol description reset 7 r/w dac_hpf_en dac high pass filter control 0 = high pass filter disabled 1 = high pass filter enabled 0x1 5:4 r/w dac_audio_hpf_corn er high pass filter 3 db cutoff control. at 48 khz, the 3 db cutoff point is at: 00 = 2 hz 01 = 4 hz 10 = 8 hz 11 = 16 hz for other sample rates, the corner cutoff point scales proportionately. 0x0 3 r/w dac_voice_en dac voice filter control : for 8/11.025/12/16 khz sample rates and for best performance should always be enabled when running at one these rates. 0 = dac voice filter disabled 1 = dac voice filter enabled this d ac voice filter control overrides the 5 - band eq setting in dac_eq_en 0x0 2:0 r/w dac_voice_hpf_corn er voice filter 3 db cutoff control. at 8 khz, the 3 db cutoff point is at: 000 = 2.5 hz 001 = 25 hz, 010 = 50 hz 011 = 100 hz 100 = 150 hz 101 = 200 hz 110 = 275 hz 111 = 363 hz 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 96 of 123 ? 2015 dialog semiconductor table 125 : register map dac_ng_cad_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x000000af dac_ng_set up_time reserved dac_ng_ram pdn_rate dac_ng_ram pup_rate dac_ng_setup_time 0x000000b0 dac_ng_of f_thresh reserved dac_ng_off_threshold 0x000000b1 dac_ng_on _thresh reserved dac_ng_on_threshold 0x000000b2 dac_ng_ct rl dac_ng_en reserved table 126 : dac_ng_setup_time (page 0: 0x000000af) bit mode symbol description reset 3 r/w dac_ng_rampdn_rat e dac noise gate ramp down control 0 = 0.88 ms/db 1 = 14.08 ms/db 0x0 2 r/w dac_ng_rampup_rat e dac noise gate ramp up control 0 = 0.22 ms/db 1 = 0.0138 ms/db 0x0 1:0 r/w dac_ng_setup_time noise gate timing control this specifies the number of samples for which the largest signal through the dacs must be above (or below) dac_ng_off _threshold (or dac_ng_on_threshold) for the noise gate to unmute (or mute) the data 00 = 256 samples 01 = 512 samples 10 = 1024 samples 11 = 2048 samples 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 97 of 123 ? 2015 dialog semiconductor table 127 : dac_ng_off_thresh (page 0: 0x000000b0) bit mode symbol description reset 2:0 r/w dac_ng_off_threshol d threshold above which the noise gate is deactivated. if the signal rises above this level, the noise gate is deactivated. 000 = - 102 db 001 = - 96 db 010 = - 90 db 011 = - 84 db 100 = - 78 db 101 = - 72 db 110 = - 66 db 111 = - 60 db 0x0 table 128 : dac_ng_on_thresh (page 0: 0x000000b1) bit mode symbol description reset 2:0 r/w dac_ng_on_threshol d threshold below which the noise gate is dactivated. if the signal drops below this level for dac_ng_setup_time samples, the noise gate is activated. 000 = - 102 db 001 = - 96 db 010 = - 90 db 011 = - 84 db 100 = - 78 db 101 = - 72 db 110 = - 66 db 111 = - 60 db 0x0 table 129 : dac_ng_ctrl (page 0: 0x000000b2) bit mode symbol description reset 7 r/w dac_ng_en dac noise gate control 0 = noise gate is disabled 1 = noise gate is enabled 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 98 of 123 ? 2015 dialog semiconductor table 130 : register map dai_cad_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x0000002b dai_clk_mo de dai_clk_en reserved dai_wclk_tri_ state dai_wclk_pol dai_clk_pol dai_bclks_per_wclk 0x0000002c dai_ctrl dai_en reserved dai_ch_num dai_word_length dai_format 0x0000002d dai_tdm_ct rl dai_tdm_mod e_en dai_oe reserved dai_tdm_ch_en 0x00000030 dai_offset _lower dai_offset_lower 0x00000031 dai_offset _upper reserved dai_offset_upper table 131 : dai_clk_mode (page 0: 0x0000002b) bit mode symbol description reset 7 r/w dai_clk_en dai master mode control 0 = slave mode (bclk/wclk inputs) 1 = master mode (bclk/wclk outputs) 0x0 4 r/w dai_wclk_tri_state wlck tri - state control 0 = wclk state is set by dai_clk_en. wclk is set as output in master mode, and as input in slave mode 1 = wclk forced as an input 0x0 3 r/w dai_wclk_pol dai word clock polarity control 0 = normal polarity 1 = inverted polarity 0x0 2 r/w dai_clk_pol dai bit clock polarity control 0 = normal polarity 1 = inverted polarity 0x0 1:0 r/w dai_bclks_per_wclk number of bclks per wclk period when in dai master mode 00 = 32 bclks per wclk 01 = 64 bclks per wclk 10 = 128 bclks per wclk 11 = 256 bclks per wclk 0x1
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 99 of 123 ? 2015 dialog semiconductor table 132 : dai_ctrl (page 0: 0x0000002c) bit mode symbol description reset 7 r/w dai_en dai control 0 = dai disabled. no data is transferred. 1 = dai enabled. input and output data streams are transferred 0x0 5:4 r/w dai_ch_num channel control 00 = no channels are enabled 01 = left channel is enabled 10 = left and right channels are enabled 11 = reserved 0x2 3:2 r/w dai_word_length dai data word length control 0 = 16 bits per channel 1 = 20 bits per channel 2 = 24 bits per channel 3 = 32 bits per channel 0x2 1:0 r/w dai_format dai data format 00 = i2s mode 01 = left justified mode 10 = right justified mode 11 = dsp mode 0x0 table 133 : dai_tdm_ctrl (page 0: 0x0000002d) bit mode symbol description reset 7 r/w dai_tdm_mode_en dai tdm mode control. in tdm mode, the output is high impedence when not actively driving data as this allows other devices to share the datout line. 0 = dai normal mode 1 = dai tdm mode 0x0 6 r/w dai_oe dai output control 0 = dai datout pin is high impedence 1 = dai datout pin is driven when required 0x1 1:0 r/w dai_tdm_ch_en dai tdm channel control. bit 0 = left channel; bit 1: riight channel. for each bit, 0 = disabled; 1 = enabled. 00 = left channel and right channel both d isabled 01 = left channel enabled, right channel disabled 10 = left channel disabled, right channel enabled 11 = left channel and right channel both enabled 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 100 of 12 3 ? 2015 dialog semiconductor table 134 : dai_offset_lower (page 0: 0x00000030) bit mode symbol description reset 7:0 r/w dai_offset_lower dai data offset with respect to wclk measured in bclk periods. the total offset is determined by an 11 - bit binary number formed by a combination of this register (dai_offset_lower) and dai_offset_upper. with the maximum bclk frequency of 6 mhz, the maximum number of bclk periods is 768. the maximum dai offset value is therefore 767 (0x2ff), represented by dai_offset_lower = 1111 1111, and dai_offset_u pper = 010. 0x000 = no offset relative to the normal formatting 0x001 = one bclk period offset relative to the normal formatting 0x002 = two bclk periods offset relative to the normal formatting 0xn = n bclk periods offset relative to the normal formatti ng (max = 0x2ff) 0x0 table 135 : dai_offset_upper (page 0: 0x00000031) bit mode symbol description reset 2:0 r/w dai_offset_upper dai data offset with respect to wclk measured in bclk periods. the total offset is determined by an 11 - bit binary number formed by a combination of dai_offset_lower and this register (dai_offset_upper). with the maximum bclk frequency of 6 mhz, the maximum number of bclk periods is 768. the maximum dai offset value is therefore 767 (0x2ff), represented by dai_offset_lower = 1111 1111, and dai_offset_upper = 010. 0x000 = no offset relative to the normal formatting 0x001 = one bclk period offset relative to the normal formatting 0x002 = tw o bclk periods offset relative to the normal formatting 0xn = n bclk periods offset relative to the normal formatting (max = 0x2ff) 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 101 of 123 ? 2015 dialog semiconductor table 136 : register map pll_cad_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x00000020 pll_ctrl pll_mode pll_mclk_sqr _en pll_indiv reserved 0x00000022 pll_frac_t op reserved pll_fbdiv_frac_top 0x00000023 pll_frac_b ot pll_fbdiv_frac_bot 0x00000024 pll_intege r reserved pll_fbdiv_integer 0x00000025 pll_srm_st s pll_srm_status reserved table 137 : pll_ctrl (page 0: 0x00000020) bit mode symbol description reset 7:6 r/w pll_mode pll mode control 00 = bypass mode. the pll is disabled, and the system clock is mclk (after input divider) 01 = normal mode.the pll is enabled, and the system clock is a fixed multiple of mclk 10 = srm. the pll is enabled, and the system clock tracks wclk 11 = reserved 0x0 5 r/w pll_mclk_sqr_en pll clock squarer control. 0 = clock squarer is disabled 1 = clock squarer is enabled 0x0 4:2 r/w pll_indiv pll reference input clock (mclk) control 0 = 2 to 4.5 mhz 1 = 4.5 to 9 mhz 2 = 9 to 18 mhz 3 = 18 to 36 mhz 4 = 36+ mhz 0x4
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 102 of 123 ? 2015 dialog semiconductor table 138 : pll_frac_top (page 0: 0x00000022) bit mode symbol description reset 4:0 r/w pll_fbdiv_frac_top pll fractional division value (top bits). the full pll fractional division value is a concatenation of these bits (msb) and pll_fbdiv_frac_bot (lsb). the value in this register does not take effect until pll_fbdiv_integer is written. 0x0 table 139 : pll_frac_bot (page 0: 0x00000023) bit mode symbol description reset 7:0 r/w pll_fbdiv_frac_bot pll fractional division value (bottom bits). the full pll fractional division value is a concatenation of pll_fbdiv_frac_top (msb) and these bits (lsb). the value in this register does not take effect until pll_fbdiv_integer is written. 0x0 table 140 : pll_integer (page 0: 0x00000024) bit mode symbol description reset 6:0 r/w pll_fbdiv_integer pll integer division value. writing this register causes the entire pll_fbdiv value (pll_integer, pll_frac_top, pll_frac_bot) to be updated. 0x20 table 141 : pll_srm_sts (page 0: 0x00000025) bit mode symbol description reset 7:4 r pll_srm_status pll/srm status (user mode). within this four - bit register field, bit position [3] = srm lock bit position [ 2] = pll/srm active bit position [1] = pll lock bit position [0] = mclk status (1=valid mclk detected, subject to minimum detection frequency of approximately 1 mhz) for each bit position, 0 = inactive or invalid 1 = active or valid 0x1
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 103 of 123 ? 2015 dialog semiconductor table 142 : register map router_cad_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x0000002a dig_routin g_dai reserved dai_r_src reserved dai_l_src 0x0000002e dig_routin g_dac dac_r_mono reserved dac_r_src dac_l_mono reserved dac_l_src 0x00000099 dig_ctrl dac_r_inv reserved dac_l_inv reserved table 143 : dig_routing_dai (page 0: 0x0000002a) bit mode symbol description reset 5:4 r/w dai_r_src data selection for the dai right output stream 00 = adc left 01 = tone generator 10 = dai input left data / dai mono mix 11 = dai input right data / dai mono mix 0x1 1:0 r/w dai_l_src data selection for the dai left output stream 00 = adc left 01 = tone generator 10 = dai input left data / dai mono mix 11 = dai input right data / dai mono mix 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 104 of 123 ? 2015 dialog semiconductor table 144 : dig_routing_dac (page 0: 0x0000002e) bit mode symbol description reset 7 r/w dac_r_mono mono - mix control for the dai right input stream 0 = no mono - mix 1 = the dai right input stream is replaced with a mono mix of left and right 0x0 5:4 r/w dac_r_src data selection to the dac_r path 00 = adc left output 01 = tone generator 10 = dai input left / dai mono mix 11 = dai input right / dai mono mix 0x3 3 r/w dac_l_mono mono - mix control for the dai left input stream 0 = no mono - mix 1 = the dai left input stream is replaced with a mono mix of left a nd right 0x0 1:0 r/w dac_l_src data selection to the dac_l path 00 = adc left output 01 = tone generator 10 = dai input left / dai mono mix 11 = dai input right / dai mono mix 0x2 table 145 : dig_ctrl (page 0: 0x00000099) bit mode symbol description reset 7 r/w dac_r_inv dac right input stream invertion control 0 = no inversion of the right input strem 1 = the right input stream is inverted 0x0 3 r/w dac_l_inv dac left input stream invertion control 0 = no inversion of the left input stream 1 = the left input stream is inverted 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 105 of 123 ? 2015 dialog semiconductor table 146 : register map sidetone_cad_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x0000003a sidetone_c trl sidetone_en sidetone_mut e_en reserved 0x0000003b sidetone_g ain reserved sidetone_gain 0x0000003c drouting_s t_outfilt_1 l reserved outfilt_st_1l_src 0x0000003d drouting_s t_outfilt_1 r reserved outfilt_st_1r_src table 147 : sidetone_ctrl (page 0: 0x0000003a) bit mode symbol description reset 7 r/w sidetone_en sidetone path control 0 = sidetone path disabled 1 = sidetone path enabled 0x0 6 r/w sidetone_mute_en sidetone mute control 0 = sidetone mute disabled 1 = sidetone mute enabled 0x1 table 148 : sidetone_gain (page 0: 0x0000003b) bit mode symbol description reset 3:0 r/w sidetone_gain sidetone gain control 0000 = - 42 db 0001 = - 39 db 0010 = - 36 db continuing in 3 db steps to 1101 = - 3db 1110 = 0db 1111 = reserved 0xe
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 106 of 123 ? 2015 dialog semiconductor table 149 : drouting_st_outfilt_1l (page 0: 0x0000003c) bit mode symbol description reset 2:0 r/w outfilt_st_1l_src data selection for the output filter 1 left output stream bit 0 = output filter 1l bit 1 = output filter 1r bit 2 = sidetone for each bit position/output stream, 0 = disabled and 1 = enabled 0x1 table 150 : drouting_st_outfilt_1r (page 0: 0x0000003d) bit mode symbol description reset 2:0 r/w outfilt_st_1r_src data selection for the output filter 1 right output stream bit 0 = output filter 1l bit 1 = output filter 1r bit 2 = sidetone for each bit position/output stream, 0 = disabled and 1 = enabled 0x2 table 151 : register map system_active_cad_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x000000fd system_act ive reserved system_activ e table 152 : system_active (page 0: 0x000000fd) bit mode symbol description reset 0 r/w system_active system standby mode 0 = standby mode 1 = active mode 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 107 of 123 ? 2015 dialog semiconductor table 153 : register map system_controller_cad_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x00000050 system_mo des_input adc_mode mode_submit 0x00000051 system_mo des_outpu t dac_mode mode_submit 0x000000e0 system_sta tus reserved sc2_busy sc1_busy table 154 : system_modes_input (page 0: 0x00000050) bit mode symbol description reset 7:1 r/w adc_mode preconfigured system modes (input side): [1] = reserved [2] = mic [3] = reserved [4] = mixin [5] = reserved [6] = adc [7] = reserved 0x0 0 r/w mode_submit causes both the adc_mode and dac_mode to become active 0x0 table 155 : system_modes_output (page 0: 0x00000051) bit mode symbol description reset 7:1 r/w dac_mode preconfigured system modes (output side): [1] = reserved [2] = reserved [3] = reserved [4] = hp_l [5] = hp_r [6] = dac_l [7] = dac_r 0x0 0 - mode_submit causes both the adc_mode and dac_mode to become active 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 108 of 123 ? 2015 dialog semiconductor table 156 : system_status (page 0: 0x000000e0) bit mode symbol description reset 1 r sc2_busy indicates the current status of the system mode controller 0 = complete 1 = busy 0x0 0 r sc1_busy indicates the current status of the system controller 0 = complete 1 = busy 0x0 table 157 : register map tone_gen_cad_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x000000b4 tone_gen_ cfg1 start_stopn reserved dtmf_en dtmf_reg 0x000000b5 tone_gen_ cfg2 tone_gen_gain reserved swg_sel 0x000000b6 tone_gen_ cycles reserved beep_cycles 0x000000b7 tone_gen_f req1_l freq1_l 0x000000b8 tone_gen_f req1_u freq1_u 0x000000b9 tone_gen_f req2_l freq2_l 0x000000ba tone_gen_f req2_u freq2_u 0x000000bb tone_gen_ on_per reserved beep_on_per 0x000000bc tone_gen_ off_per reserved beep_off_per
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 109 of 123 ? 2015 dialog semiconductor table 158 : tone_gen_cfg1 (page 0: 0x000000b4) bit mode symbol description reset 7 r/w start_stopn tone generator stop - start control. setting this bit = 1 starts the tone generator for the number of beeps defined by beep_cycles. once complete, the bit is automatically cleared. if beep_cycles = 111 (continuous), then this bit must be cleared manually 0 = tone generator disabled 1 = tone generator enabled 0x0 4 r/w dtmf_en dtmf control 0 = dtmf is disabled. the tone generator uses values in the registers freq1 and freq2 to generate sine wave(s) 1 = dtmf is enabled. the tone generator uses values from the register dtmf_reg to generate sin e - waves 0x0 3:0 r/w dtmf_reg the dtmf key pad values 0 to 15 0000 = 0 0001 = 1 0010 = 2 0011 = 3 0100 = 4 0101 = 5 0110 = 6 0111 = 7 1000 = 8 1001 = 9 1010 = a 1011 = b 1100 = c 1101 = d 1110 = * 1111 = # 0x0
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 110 of 123 ? 2015 dialog semiconductor table 159 : tone_gen_cfg2 (page 0: 0x000000b5) bit mode symbol description reset 7:4 r/w tone_gen_gain tone generator gain control 0000 = 0 db 0001 = - 2.5 db 0010 = - 6 db continuing in 2.5/3.5 db steps to 1110 = - 42 db 1111 = - 44.5 db 0x0 1:0 r/w swg_sel sine wave selection control 00 = sum of both sine wave generator (swg) values is mixed into the audio stream 01 = only the first swg value is output 10 = only the second swg value is output 11 = 1 - cos(swg1) or s_ramp function for headphone detection. the high period is determined by the beep_on_per setting 0x0 table 160 : tone _gen_cycles (page 0: 0x000000b6) bit mode symbol description reset 2:0 r/w beep_cycles beep control. this specified the number of beep cycles required. 000 = 1 cycle 001 = 2 cycles 010 = 3 cycles 011 = 4 cycles 100 = 8 cycles 101 = 16 cycles 110 = 32 cycles 111 = continuous (until start_stopn is set to 0) 0x0 table 161 : tone_gen_freq1_l (page 0: 0x000000b7) bit mode symbol description reset 7:0 r/w freq1_l lower byte of the output frequency for the first sine wave generator (swg) if sample rate (sr) = 8/12/16/24/32/48/96 khz freq1=(2^16*(f/12000)) - 1 if sample rate (sr) =11.025/22.05/44.4/88.2 khz, freq1=(2^16*(f/11025)) - 1 0x55
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 111 of 123 ? 2015 dialog semiconductor table 162 : tone_gen_freq1_u (page 0: 0x000000b8) bit mode symbol description reset 7:0 r/w freq1_u upper byte of the output frequency for the first sine wave generator (swg) if sample rate (sr) = 8/12/16/24/32/48/96 khz freq1=(2^16*(f/12000)) - 1 if sample rate (sr) =11.025/22.05/44.4/88.2 khz, freq1=(2^16*(f/11025)) - 1 0x15 table 163 : tone_gen_freq2_l (page 0: 0x000000b9) bit mode symbol description reset 7:0 r/w freq2_l lower byte of the output frequency for the second sine wave generator (swg) if sample rate (sr) = 8/12/16/24/32/48/96 khz freq1=(2^16*( f/12000)) - 1 if sample rate (sr) =11.025/22.05/44.4/88.2 khz, freq1=(2^16*(f/11025)) - 1 0x0 table 164 : tone_gen_freq2_u (page 0: 0x000000ba) bit mode symbol description reset 7:0 r/w freq2_u upper byte of the output frequency for the second sine wave generator (swg) if sample rate (sr) = 8/12/16/24/32/48/96 khz freq1=(2^16*(f/12000)) - 1 if sample rate (sr) =11.025/22.05/44.4/88.2 khz, freq1=(2^16*(f/11025) ) - 1 0x40
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 112 of 123 ? 2015 dialog semiconductor table 165 : tone_gen_on_per (page 0: 0x000000bb) bit mode symbol description reset 5:0 r/w beep_on_per beep on period control 0x0 = 10 ms 0x1 = 20 ms 0x2 = 30 ms continuing in 10 ms steps to 0x14 = 200 ms then 0x15 = reserved 0x16 = reserved 0x17 = reserved 0x18 = reserved then... 0x19 = 250 ms 0x1a = 300 ms 0x1b = 350 ms continuing in 50 ms steps to 0x3b = 1950 ms 0x3c = 2000 ms 0x3d = reserved 0x3e = reserved 0x3f = continuous 0x2 table 166 : tone_gen_off_per (page 0: 0x000000bc) bit mode symbol description reset 5:0 r/w beep_off_per beep off period control 0x0 = 10 ms 0x1 = 20 ms 0x2 = 30 ms continuing in 10 ms steps to 0x14 = 200 ms then 0x15 = reserved 0x16 = reserved 0x17 = reserved 0x18 = reserved then... 0x19 = 250 ms 0x1a = 300 ms 0x1b = 350 ms continuing in 50 ms steps to 0x3b = 1950 ms 0x3c = 2000 ms 0x3d = reserved 0x3e = reserved 0x3f = reserved 0x1
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 113 of 123 ? 2015 dialog semiconductor 11 package information figure 35 : da7219 package outline drawing
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 114 of 123 ? 2015 dialog semiconductor 12 ordering information the ordering number consists of the part number followed by a suffix indicating the packing method. for details and availability, please contact dialog semiconductors local sales representative. table 167 : ordering i nformation part number package size (mm) shipment form pack quantity da7219 - 02vba 32 wl - csp 4.5 x 1.64 mm tape & reel 4,500 da7219 - 02vb6 32 wl - csp 4.5 x 1.64 mm tray/waffle pack (engineering samples only - not for mass production 98
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 115 of 123 ? 2015 dialog semiconductor applications information appendix a a.1 codec initialisation depending on the specific application, some general settings need to be set. examples of these settings include the sample rate, the pll, and the digital audio interface. then the amplifiers, the mixers and channels of the adc/dac have to be configured and enabled using their respective control registers. an example sequence is shown below: 1. configure clock mode as required for operation, ( for example pll bypass, pll or srm mode ) 2. configure the digital audio interface 3. configure the charge pump if the headphone path is in use 4. set input and output mixer paths and gains 5. enable input and o utput paths using the system controller a.2 automatic alc calibration when using the automatic level control (alc) in sync - mode the dc offset betwe en the digital and analogue pga s must be cancelled. this is performed automatically if the following procedure is performed: 6. enable m icrophone amplifiers unmuted 7. mute microphones 8. enable i nput mixer and adc unmuted 9. enable aif interface 10. set alc_auto_calib_en in alc_ctrl1 to 1 ( alc_ctrl1 = 0x2f). this bit will auto clear when calibr ation is complete. 11. when calibration is complete, enable the alc with alc_sync_mode and alc_offset_en ( alc_ctrl1 = 0x2f) 12. unmute microphones
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 116 of 123 ? 2015 dialog semiconductor components appendix b the following recommended components are examples selected from requirements of a typical application. the electrical characteristics (that is, the supported voltage/current ranges) have to be cross - checked and component types may need to be adapted from the individual needs of the target circuit ry. b.1 audio inputs table 168 : audio inputs pin name bump/ p in power d omain d escription type mic _ n a15 vdd differential mic. input ( negative ) / single - ended mic. input analogue i nput mic_p b16 vdd differential mic. input ( positive ) / single - ended mic. input analogue i nput mic c15 n/ a supply input for headset microphone power analogue i nput the da72 19 microphone inputs can be configured to accommodate single - ended or differential analogue microphones, line inputs or digital microphones . when using the inputs in an analogue configuration, a dc blocking capacitor is required for each used input bump used in the target application. the choice of capacitor is determined by the filter that is formed between that capac itor and the input impedance of the input pin , which can be found in the input mixing units section of the datasheet. ? = 1 2 ? . ? . ? ? where f c is the 3 db cut off frequency of the low pass filter (typically 20 hz for audio applications). a 1 f capacitor is suitable for most applications. due to their high stability , tantalum capacitors are particularly suitable for this application. ceramic equivalents with an x5r diele ctric are recommended as a cost - effective alternative. care should be taken to ensure that the desired capacitance is maintained over operating temperature and voltage. z5u dielectric ceramics should be avoided due to their susceptibility to microphonic effects. unused input bumps can be left floating or connected via a capacitor to ground . the mic pin would normally be connected to micbias using a 2k2 resistor. this pin is an input to supply the microphone power when a headset is connected to the headset socket. the polarity of the microphone pin is determined by the accessory detect circu itry and the power is switched internally in the device to allow the microphone bias to be provided from this pin.
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 117 of 123 ? 2015 dialog semiconductor b.2 microphone b ias table 169 : microphone b ias pin n ame bump/pin power domain description type micbias b14 vdd_mic microphone bias output analogue o utput mic c15 vdd_mic microphone bias input to accdet analogue input a 1 f capacitor to gnd should be used to decouple the micbias output. figure 36 : micbias decoupling b.3 audio outputs table 170 : headset pin n ame bump/pin power domain description type hp_l a5 vdd headphone output (left) analogue o utput hp_r a3 vdd headphone output (right) analogue o utput ring2 c13 vdd_mic connection to ring2 on headset jack analogue input/ground ring2_sense b4 vdd_mic ring2 sense line analogue input/ground sleeve a11 vdd_mic connection to sleeve on headset jack analogue input/ground sleeve_sense b6 vdd_mic sleeve sense line analogue input/ground jackdet d16 vdd jack insertion detect pin analogue input mic_p b16 vdd microphone input (p) analogue input mic_n a15 vdd microphone input (n) analogue input figure 37 : recommended headphone layout m 1 1 m i c b i a s 1 f b 1 4 m i c b i a s m i c c 1 5 m 1 1 m i c b i a s a 5 h p _ r b 6 h p _ l s l e e v e _ s e n s e c 1 3 a 3 d 1 6 j a c k d e t a 1 1 b 4 h e a d s e t j a c k s l e e v e r i n g 2 _ s e n s e r i n g 2 a 1 5 b 1 6 m i c _ p m i c _ n
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 118 of 123 ? 2015 dialog semiconductor b.4 headphone charge pump table 171 : headphone charge p ump pin name bump/p in power d omain description type hpcsp a1 vdd charge pump reservoir capacitor (pos) charge p ump hpcsn c1 vdd charge pump reservoir capacitor ( neg) charge p ump hpcfp d2 vdd charge pump flying capacitor (pos) charge p ump hpcfn c3 vdd charge pump flying capacitor (neg) charge p ump a 1 f reservoir capacitor is required between th e hpcsp and gnd and between hpcsn and gnd . for best performance the capacitors should be fitted as near to the device as possible. figure 38 : charge pump d ecoupling a 1 f flying capacitor is required between hpcfp and hpcfn. for best performance the capacitor should b e fitted as near to the device as possible. figure 39 : charge pump flying c apacitor to ensure stable charge pump operation the effective series resistance of the flying capacitor should be kept to a minimum. this can be achieved by selecting an appropriate capacitor dielectric (x5r, x7r) and ensuring that the capacitor is placed as near to the device as possible. ideally the connection between the pins and the capac itor should not run through via s (co nnected on top layer of pcb only). m 1 1 m i c b i a s 1 f c 1 h p c s n 1 f a 1 h p c s p m 1 1 m i c b i a s 1 f c 3 h p c f n d 2 h p c f p
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 119 of 123 ? 2015 dialog semiconductor b.5 digital i nterfaces table 172 : digital i nterfaces C i2c pin name bump/p in power d omain description type sda d14 vdd_io i2c bidirectional data digital input / o utput scl d12 vdd_io i2c clock input digital i nput the i2c data and clock lines are powered from vdd_io. both i2c line require a pull up to vdd_io. the value of this pull up is dependent on i2c bus speed, bus length and supply voltage. a 2.2 k? resistor is satisfactory in most applicat ions. figure 40 : i2c pull ups table 173 : digital interfaces - i2s pin n ame bump/p in power d omain description type datin c7 vdd_io dai data input digital o utput datout c9 vdd_io dai data output digital i nput bclk d6 vdd_io dai bit clock digital input / o utput wclk d8 vdd_io dai word clock (l/r select) digital input / o utput mclk c11 vdd_io master clock digital i nput the dai interface pins should be treated as clock signals and the appropriate layout rules for routing clocks should be adhered to. b.6 references table 174 : references pin name bump/p in power d omain description type vmid a9 vdd audio mid - rail reference capacitor reference vref a7 vdd bandgap reference capacitor reference dacref b8 vdd audio dac reference capacitor reference a 1 f capacitor should be connected between each of the references and gnd . for best performance the capacitors should be fitted as near to the device as possible. figure 41 : reference c apacitors s c l s d a d 1 4 d 1 2 v d d _ i o 2 k 2 ? 2 k 2 ? m 1 1 m i c b i a s 1 f a 7 v r e f 1 f a 9 v m i d d a c r e f b 8 1 f
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 120 of 123 ? 2015 dialog semiconductor b.7 supplies table 175 : power supplies pin name bump/p in power d omain description type vdd c5 min: 1.71 v max: 2.65 v supply for analogue & digital circuits / supply for headphone charge pump power s upply vdd_io d4 min: 1.71 v max: 3.6 v supply for digital interfaces power s upply vdd_mic a13 min: 1.8 v * max: 3.6 v supply for microphone bias circuits * minimum level must be 300 mv higher than vdd level power s upply decoupling capacitors are recommend ed between all supplies and gnd . these capacitors should be located as near to the device as possible. figure 42 : power supply decoupling b.8 ground table 176 : ground pin name bump/p in power d omain description type gnd b10 analogue ground power g round gnd_hp b12 headphone ground power ground gnd_cp b2 charge pump/digital ground power g round gnd, gnd_hp and gnd_cp should be connected directly to the system ground. m 1 1 m i c b i a s 1 f a 1 3 v d d _ m i c d 4 1 f v d d _ i o c 5 1 f 1 . 7 1 v t o 3 . 6 v 1 . 8 v t o 3 . 6 v 1 . 7 1 v t o 2 . 6 5 v v d d
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 121 of 123 ? 2015 dialog semiconductor pcb layout g uidelines appendix c da721 9 use s dialog semiconductors routeeasy? technology allowing the device to be routed using conventional, low cost, pcb technology. all device balls are routable on the top level and conventional plated through hole vias can be used throughout. this desi gn is fully realisable using a 2 - layer pcb . f or optimum performance it is recommended that a 4 - layer pcb is used with layers 2 and 3 as solid ground planes. decoupling and reference capacitors should be located as close to the device as possible and appropriately sized tracks should be used for all power connections. figure 43 : da7219 e xa mple l ayout c.1 layout an d s chematic support copies of the evaluation board schematics and layout are available on request to aid in pcb development. dialog semiconductor also offer a schematic and layout rev iew service for all designs u sing dialogs devices. please contact your l ocal dialog semiconductor office if you wish to use this service. c.2 general r ecommendations appropriate trace width and number of vias should be used for all power supply paths a common ground plane should be used, which allows proper electrical and thermal performance noise - sensitive analogue signals such as feedback lines or clock connections should be kept away from traces carrying pulsed analogue or digital signals. this can be achieved by separation (distance) or by shielding with quiet signals or groun d traces decoupling capacitors should be x5r ceramics and should be placed as near to the device as possible charge pump capacitors should be x5r ceramics and should be placed as near to the device as possible
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 122 of 123 ? 2015 dialog semiconductor c.3 capacitor selection ceramic capacitors are man ufactured with a variety of dielectrics, each with a different behaviour over temperature and applied voltage. capacitors must have a dielectric adequate to ensure the minimum capacitance over the necessary temperature range, dc bias conditions and low equ ivalent series resistance (esr). x5r or x7r dielectri cs with a voltage rating of 6.3 v or 10 v are recommended for best performance. y5v and z5u dielectrics are not recommended for use because of their poor temperature and dc bias characteristics. the wors t - case capacitance accounting for capacitor variation over temperature, component tolerance, and voltage is calculated using the following equation: ? ??? = ? ??? ? ( 1 ? ?????? ) ? ( 1 ? ??? ) where: ceff is the effective capacitance at the operating voltage. tempco is the worst - case capacitor temperature coefficient. tol is the worst - case component tolerance. these figures can be found in the manufacturers datasheet. in the example below, the worst - case temperature coefficient (tempco) over ?55c to +85c is assumed to be 15 % . the tolerance of the capacitor (tol) is assu med to be 10%, and cout is 0.65 f at 1.8 v. substituting these values in the equation yields ? ??? = 0 . 65 ?? ? ( 1 ? 0 . 15 ) ? ( 1 ? 0 . 1 ) = 0 . 497 ?? below is a table with recommended capacitor types: application value size temp. c har. tolerance rated v oltage type vdd, vdd_io, vdd_mic, dacref, vmid, vref, hpcfp/hpcfn, hpcsp, hpcsn, micbias 1 0 x 1 f 0201 x5r +/ - 15 % +/ - 10 % 6.3 v murata grm033r60j105m
da7219 audio codec with advanced accessory detect company confidential datasheet revision 2.1 1 7 - dec - 2015 123 of 123 ? 2015 dialog semiconductor status d efinitions revi sion datas heet s tatus product s tatus definition 1. target development this data sheet contains the design specifications for product development. specifications may be changed in any manner without notice. 2. preliminary qualification this data sheet contains the specifications and preliminary characteri s ation data for products in pre - production. s pecifications may be changed at any time without notice in order to improve the design. 3. final production this data sheet contains the final specifications for products in volume production. the specifications may be changed at any time in order to improve the design, manufacturing and supply. relevant changes will be communicate d via customer product notifications. 4. obsolete archived this data sheet contains the specifications for discontinued products. the information is provided for reference only. disclaimer information in this document is believed to be accurate and reliable. however, dialog semiconductor does not give any represent ations or warranties, expressed or implied, as to the accuracy or completeness of such information. dialog semiconductor furtherm ore takes no responsibility whatsoever for the content in this document if provided by any information source outside of dialog semiconductor. dialog semiconductor reserves the right to change without notice the information published in this document, incl uding without limitation the specification and the design of the related semiconductor products, software and applications. applications, software, and semiconductor products described in this document are for illustrative purposes only. dialog semiconduc tor makes no representation or warranty that such applications, software and semiconductor products will be suitable for the specified use without further testing or modification. unless otherwise agreed in writing, such testing or modification is the sole responsibility of the customer and dialog semiconductor excludes all liability in this respect. customer notes that nothing in this document may be construed as a license for customer to use the dialog semiconductor products, software and applications referred to in this document. such license must be separately sought by customer with dialog semiconductor. all use of dialog semiconductor products, software and applications referred to in this document are subject to dialog semiconductors standard terms and conditions of sale , unless otherwise stated. ? dialog semiconductor. all rights reserved. rohs c ompliance dialog semiconductor complies to european directive 2001/95/ec and from 2 january 2013 onwards to european directive 2011/65/eu concerning restriction of hazardous substances (rohs/rohs2). dialog semiconductors statement on rohs can be found on the customer portal https: //support.diasemi.com/ . rohs certificates from our sup pliers are available on request. contacting dialog semiconductor united kingdom (headquarters) dialog semiconductor (uk) ltd phone: +44 1793 757700 germany dialog semiconductor gmbh phone: +49 7021 805 - 0 the netherlands dialog semiconductor b.v. phone: +31 73 640 8822 north america dialog semiconductor inc. phone: +1 408 845 8500 japan dialog semiconductor k. k. phone: +81 3 5425 4567 taiwan dialog semiconductor taiwan phone: +886 281 786 222 singapore dialog semiconductor singapore phone: +65 64 8499 29 hong kong dialog semiconductor hong kong phone: +852 3769 5200 korea dialog semiconductor korea phone: +82 2 3469 8200 china (shenzhen) dialog semiconductor china phone: +86 755 2981 3669 china (shanghai) dialog semiconductor china phone: +86 21 5424 9058 email: enquiry@diasemi.com web site: www.dialog - semiconductor.com


▲Up To Search▲   

 
Price & Availability of DA7219-02VBA

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X